Skip to content

Commit 81fb740

Browse files
committed
feat: add french translation to username exists warning message
1 parent 4ebcfe6 commit 81fb740

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

apps/web/src/routes/_app/admin/users/create.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ const RouteComponent = () => {
165165
ctx.issues.push({
166166
code: 'custom',
167167
input: ctx.value.username,
168-
message: 'Username already exists',
168+
message: t('common.usernameExists'),
169169
path: ['username']
170170
});
171171
}

apps/web/src/translations/common.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,9 @@
150150
"username": {
151151
"en": "Username",
152152
"fr": "Nom d'utilisateur"
153+
},
154+
"usernameExists": {
155+
"en": "Username already exists",
156+
"fr": "Le nom d'utilisateur existe déjà"
153157
}
154158
}

0 commit comments

Comments
 (0)