From ccd6dc2d28ead42a0fbed452d91f643d894fdecf Mon Sep 17 00:00:00 2001 From: alexsparkes Date: Fri, 22 Mar 2024 22:01:35 +0000 Subject: [PATCH] fix(about): Loading text on offline mode --- src/features/misc/sections/About.jsx | 2 +- src/i18n/locales/{de-DE.json => de_DE.json} | 0 src/i18n/locales/{en-GB.json => en_GB.json} | 0 src/i18n/locales/{en-US.json => en_US.json} | 0 src/i18n/locales/{es-419.json => es_419.json} | 0 src/i18n/locales/{id-ID.json => id_ID.json} | 0 src/i18n/locales/{pt-BR.json => pt_BR.json} | 0 src/i18n/locales/{tr-TR.json => tr_TR.json} | 0 src/i18n/locales/{zh-CN.json => zh_CN.json} | 0 src/lib/translations.js | 18 +++++++++--------- 10 files changed, 10 insertions(+), 10 deletions(-) rename src/i18n/locales/{de-DE.json => de_DE.json} (100%) rename src/i18n/locales/{en-GB.json => en_GB.json} (100%) rename src/i18n/locales/{en-US.json => en_US.json} (100%) rename src/i18n/locales/{es-419.json => es_419.json} (100%) rename src/i18n/locales/{id-ID.json => id_ID.json} (100%) rename src/i18n/locales/{pt-BR.json => pt_BR.json} (100%) rename src/i18n/locales/{tr-TR.json => tr_TR.json} (100%) rename src/i18n/locales/{zh-CN.json => zh_CN.json} (100%) diff --git a/src/features/misc/sections/About.jsx b/src/features/misc/sections/About.jsx index ecc08de4..cc19851a 100644 --- a/src/features/misc/sections/About.jsx +++ b/src/features/misc/sections/About.jsx @@ -110,7 +110,7 @@ class About extends PureComponent { componentDidMount() { if (navigator.onLine === false || localStorage.getItem('offlineMode') === 'true') { this.setState({ - update: variables.getMessage('modals.main.settings.sections.about.version.checking_update'), + update: variables.getMessage('modals.main.marketplace.offline.description'), loading: variables.getMessage('modals.main.marketplace.offline.description'), }); return; diff --git a/src/i18n/locales/de-DE.json b/src/i18n/locales/de_DE.json similarity index 100% rename from src/i18n/locales/de-DE.json rename to src/i18n/locales/de_DE.json diff --git a/src/i18n/locales/en-GB.json b/src/i18n/locales/en_GB.json similarity index 100% rename from src/i18n/locales/en-GB.json rename to src/i18n/locales/en_GB.json diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en_US.json similarity index 100% rename from src/i18n/locales/en-US.json rename to src/i18n/locales/en_US.json diff --git a/src/i18n/locales/es-419.json b/src/i18n/locales/es_419.json similarity index 100% rename from src/i18n/locales/es-419.json rename to src/i18n/locales/es_419.json diff --git a/src/i18n/locales/id-ID.json b/src/i18n/locales/id_ID.json similarity index 100% rename from src/i18n/locales/id-ID.json rename to src/i18n/locales/id_ID.json diff --git a/src/i18n/locales/pt-BR.json b/src/i18n/locales/pt_BR.json similarity index 100% rename from src/i18n/locales/pt-BR.json rename to src/i18n/locales/pt_BR.json diff --git a/src/i18n/locales/tr-TR.json b/src/i18n/locales/tr_TR.json similarity index 100% rename from src/i18n/locales/tr-TR.json rename to src/i18n/locales/tr_TR.json diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh_CN.json similarity index 100% rename from src/i18n/locales/zh-CN.json rename to src/i18n/locales/zh_CN.json diff --git a/src/lib/translations.js b/src/lib/translations.js index 3b3a1070..0dc6be88 100644 --- a/src/lib/translations.js +++ b/src/lib/translations.js @@ -1,24 +1,24 @@ import I18n from '@eartharoid/i18n'; -import * as de_DE from 'translations/de-DE.json'; -import * as en_GB from 'translations/en-GB.json'; -import * as en_US from 'translations/en-US.json'; +import * as de_DE from 'translations/de_DE.json'; +import * as en_GB from 'translations/en_GB.json'; +import * as en_US from 'translations/en_US.json'; import * as es from 'translations/es.json'; -import * as es_419 from 'translations/es-419.json'; +import * as es_419 from 'translations/es_419.json'; import * as fr from 'translations/fr.json'; import * as nl from 'translations/nl.json'; import * as no from 'translations/no.json'; import * as ru from 'translations/ru.json'; -import * as zh_CN from 'translations/zh-CN.json'; -import * as id_ID from 'translations/id-ID.json'; -import * as tr_TR from 'translations/tr-TR.json'; -import * as pt_BR from 'translations/pt-BR.json'; +import * as zh_CN from 'translations/zh_CN.json'; +import * as id_ID from 'translations/id_ID.json'; +import * as tr_TR from 'translations/tr_TR.json'; +import * as pt_BR from 'translations/pt_BR.json'; import * as bn from 'translations/bn.json'; /** * Initialise the i18n object. * The i18n object is then returned. - * @param locale - The locale to use. + * @param locale _ The locale to use. * @returns The i18n object. */ export function initTranslations(locale) {