From def879c586490c1d81dbb8098d260e1f816e1b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Tue, 31 Aug 2021 18:03:47 +0200 Subject: [PATCH] add empty_displayname to locale. --- client/src/components/connect.vue | 2 +- client/src/locale/en-us.ts | 1 + client/src/locale/es-sp.ts | 2 ++ client/src/locale/fr-fr.ts | 2 ++ client/src/locale/nb-no.ts | 2 ++ client/src/locale/sk-sk.ts | 2 ++ client/src/locale/sv-se.ts | 2 ++ 7 files changed, 12 insertions(+), 1 deletion(-) diff --git a/client/src/components/connect.vue b/client/src/components/connect.vue index cf2cdd50..ff390656 100644 --- a/client/src/components/connect.vue +++ b/client/src/components/connect.vue @@ -213,7 +213,7 @@ if (this.displayname == '') { this.$swal({ title: this.$t('connect.error') as string, - text: 'Display Name cannot be empty.' as string, // TODO: Add to i18n. + text: this.$t('connect.empty_displayname') as string, icon: 'error', }) return diff --git a/client/src/locale/en-us.ts b/client/src/locale/en-us.ts index a53a255f..ee79e3d4 100644 --- a/client/src/locale/en-us.ts +++ b/client/src/locale/en-us.ts @@ -16,6 +16,7 @@ export const connect = { password: 'Password', connect: 'Connect', error: 'Login error', + empty_displayname: 'Display Name cannot be empty.', } export const context = { diff --git a/client/src/locale/es-sp.ts b/client/src/locale/es-sp.ts index cdbe9665..8d2a5475 100644 --- a/client/src/locale/es-sp.ts +++ b/client/src/locale/es-sp.ts @@ -16,6 +16,8 @@ export const connect = { password: 'Contraseña', connect: 'Conectar', error: 'Error de login', + // TODO + //empty_displayname: 'Display Name cannot be empty.', } export const context = { diff --git a/client/src/locale/fr-fr.ts b/client/src/locale/fr-fr.ts index c0025ee7..1791d14b 100644 --- a/client/src/locale/fr-fr.ts +++ b/client/src/locale/fr-fr.ts @@ -16,6 +16,8 @@ export const connect = { password: 'Mot de passe', connect: 'Connexion', error: 'Erreur de connexion', + // TODO + //empty_displayname: 'Display Name cannot be empty.', } export const context = { diff --git a/client/src/locale/nb-no.ts b/client/src/locale/nb-no.ts index 2834d490..711e5591 100644 --- a/client/src/locale/nb-no.ts +++ b/client/src/locale/nb-no.ts @@ -16,6 +16,8 @@ export const connect = { password: 'Passord', connect: 'Koble til', error: 'Innloggingsfeil', + // TODO + //empty_displayname: 'Display Name cannot be empty.', } export const context = { diff --git a/client/src/locale/sk-sk.ts b/client/src/locale/sk-sk.ts index ce4fef68..8f9e8d61 100644 --- a/client/src/locale/sk-sk.ts +++ b/client/src/locale/sk-sk.ts @@ -15,6 +15,8 @@ export const connect = { displayname: 'Vaše meno', password: 'Heslo', connect: 'Pripojiť sa', + error: 'Chyba pri prihlasovaní', + empty_displayname: 'Meno nemôže byť prázdne.', } export const context = { diff --git a/client/src/locale/sv-se.ts b/client/src/locale/sv-se.ts index 8e152109..0eb6182d 100644 --- a/client/src/locale/sv-se.ts +++ b/client/src/locale/sv-se.ts @@ -16,6 +16,8 @@ export const connect = { password: 'Lösenord', connect: 'Anslut', error: 'Inloggningsfel', + // TODO + //empty_displayname: 'Display Name cannot be empty.', } export const context = {