From bfc189d01a572b66a567422d54099ff4df620366 Mon Sep 17 00:00:00 2001 From: Jean Brito Date: Thu, 18 Jan 2024 16:31:34 -0300 Subject: [PATCH] fix spanish translation --- src/i18n/resources.ts | 3 +++ src/servers/supportedVersions/main.ts | 2 +- src/ui/components/SupportedVersionDialog/index.tsx | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/i18n/resources.ts b/src/i18n/resources.ts index 41d4293d7b..dcac469712 100644 --- a/src/i18n/resources.ts +++ b/src/i18n/resources.ts @@ -3,8 +3,11 @@ import type { Resource } from 'i18next'; export default { 'de-DE': (): Promise => import('./de-DE.i18n.json'), 'en': (): Promise => import('./en.i18n.json'), + 'es': (): Promise => import('./es.i18n.json'), + 'fi': (): Promise => import('./fi.i18n.json'), 'fr': (): Promise => import('./fr.i18n.json'), 'hu': (): Promise => import('./hu.i18n.json'), + 'it-IT': (): Promise => import('./it-IT.i18n.json'), 'ja': (): Promise => import('./ja.i18n.json'), 'pl': (): Promise => import('./pl.i18n.json'), 'pt-BR': (): Promise => import('./pt-BR.i18n.json'), diff --git a/src/servers/supportedVersions/main.ts b/src/servers/supportedVersions/main.ts index 47f648cb67..11acd93c4d 100644 --- a/src/servers/supportedVersions/main.ts +++ b/src/servers/supportedVersions/main.ts @@ -210,7 +210,7 @@ export const getExpirationMessageTranslated = ( const params = { instance_version: serverVersion, instance_ws_name: serverName, - instanceDomain: serverUrl, + instance_domain: serverUrl, remaining_days: moment(expiration).diff(new Date(), 'days'), ...message?.params, }; diff --git a/src/ui/components/SupportedVersionDialog/index.tsx b/src/ui/components/SupportedVersionDialog/index.tsx index 90ec6689ef..ae2135fabc 100644 --- a/src/ui/components/SupportedVersionDialog/index.tsx +++ b/src/ui/components/SupportedVersionDialog/index.tsx @@ -74,7 +74,7 @@ export const SupportedVersionDialog: FC = () => { supported?.i18n, supported.message, supported.expiration, - getLanguage ?? 'en', + getLanguage, server.title, server.url, server.version