diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index bfe0ce95f..918c1a7d6 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -231,7 +231,7 @@ "On {date} starting at {startTime}": "On {date} starting at {startTime}", "On {date}": "On {date}", "Only accessible through link (private)": "Only accessible through link (private)", - "Only alphanumeric characters and underscores are supported.": "Only alphanumeric characters and underscores are supported.", + "Only alphanumeric lowercased characters and underscores are supported.": "Only alphanumeric lowercased characters and underscores are supported.", "Open": "Open", "Opened reports": "Opened reports", "Or": "Or", diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index 5dda93cf1..34663c42c 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -480,7 +480,7 @@ "Only accessible through link": "Accessible uniquement par le lien", "Only accessible through link (private)": "Uniquement accessible par lien (privé)", "Only accessible to members of the group": "Accessible uniquement aux membres du groupe", - "Only alphanumeric characters and underscores are supported.": "Seuls les caractères alphanumériques et les tirets bas sont acceptés.", + "Only alphanumeric lowercased characters and underscores are supported.": "Seuls les caractères alphanumériques minuscules et les tirets bas sont acceptés.", "Only group moderators can create, edit and delete posts.": "Seul·e·s les modérateur·rice·s du groupe peuvent créer, éditer et supprimer des billets.", "Open": "Ouvert", "Opened reports": "Signalements ouverts", diff --git a/js/src/views/Account/Register.vue b/js/src/views/Account/Register.vue index fcb1fd319..3d60c96bc 100644 --- a/js/src/views/Account/Register.vue +++ b/js/src/views/Account/Register.vue @@ -26,12 +26,21 @@ :type="errors.preferred_username ? 'is-danger' : null" :message="errors.preferred_username" > - +

@{{ host }} @@ -164,7 +173,7 @@ export default class Register extends mixins(identityEditionMixin) { } catch (errorCatched) { this.errors = errorCatched.graphQLErrors.reduce( (acc: { [key: string]: string }, error: any) => { - acc[error.details] = error.message; + acc[error.details || error.field] = error.message; return acc; }, {} diff --git a/js/src/views/Account/children/EditIdentity.vue b/js/src/views/Account/children/EditIdentity.vue index dcb45e14f..6054c1e22 100644 --- a/js/src/views/Account/children/EditIdentity.vue +++ b/js/src/views/Account/children/EditIdentity.vue @@ -181,7 +181,9 @@ export default class EditIdentity extends mixins(identityEditionMixin) { get message(): string | null { if (this.isUpdate) return null; - return this.$t("Only alphanumeric characters and underscores are supported.") as string; + return this.$t( + "Only alphanumeric lowercased characters and underscores are supported." + ) as string; } get avatarUrl(): string | null { diff --git a/js/src/views/Group/Create.vue b/js/src/views/Group/Create.vue index 7ac235de1..b6ae99f40 100644 --- a/js/src/views/Group/Create.vue +++ b/js/src/views/Group/Create.vue @@ -1,6 +1,6 @@