mirror of https://github.com/mue/mue.git
fix(about): Loading text on offline mode
This commit is contained in:
parent
d931aa13b7
commit
ccd6dc2d28
|
@ -110,7 +110,7 @@ class About extends PureComponent {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
if (navigator.onLine === false || localStorage.getItem('offlineMode') === 'true') {
|
if (navigator.onLine === false || localStorage.getItem('offlineMode') === 'true') {
|
||||||
this.setState({
|
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'),
|
loading: variables.getMessage('modals.main.marketplace.offline.description'),
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
import I18n from '@eartharoid/i18n';
|
import I18n from '@eartharoid/i18n';
|
||||||
|
|
||||||
import * as de_DE from 'translations/de-DE.json';
|
import * as de_DE from 'translations/de_DE.json';
|
||||||
import * as en_GB from 'translations/en-GB.json';
|
import * as en_GB from 'translations/en_GB.json';
|
||||||
import * as en_US from 'translations/en-US.json';
|
import * as en_US from 'translations/en_US.json';
|
||||||
import * as es from 'translations/es.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 fr from 'translations/fr.json';
|
||||||
import * as nl from 'translations/nl.json';
|
import * as nl from 'translations/nl.json';
|
||||||
import * as no from 'translations/no.json';
|
import * as no from 'translations/no.json';
|
||||||
import * as ru from 'translations/ru.json';
|
import * as ru from 'translations/ru.json';
|
||||||
import * as zh_CN from 'translations/zh-CN.json';
|
import * as zh_CN from 'translations/zh_CN.json';
|
||||||
import * as id_ID from 'translations/id-ID.json';
|
import * as id_ID from 'translations/id_ID.json';
|
||||||
import * as tr_TR from 'translations/tr-TR.json';
|
import * as tr_TR from 'translations/tr_TR.json';
|
||||||
import * as pt_BR from 'translations/pt-BR.json';
|
import * as pt_BR from 'translations/pt_BR.json';
|
||||||
import * as bn from 'translations/bn.json';
|
import * as bn from 'translations/bn.json';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialise the i18n object.
|
* Initialise the i18n object.
|
||||||
* The i18n object is then returned.
|
* The i18n object is then returned.
|
||||||
* @param locale - The locale to use.
|
* @param locale _ The locale to use.
|
||||||
* @returns The i18n object.
|
* @returns The i18n object.
|
||||||
*/
|
*/
|
||||||
export function initTranslations(locale) {
|
export function initTranslations(locale) {
|
||||||
|
|
Loading…
Reference in New Issue