Call setTranslate on android.
This commit is contained in:
parent
4c1496e1cd
commit
4a69ccbe51
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,8 @@ import share from './pages/share';
|
||||||
import preferences from './pages/preferences';
|
import preferences from './pages/preferences';
|
||||||
import error from './pages/error';
|
import error from './pages/error';
|
||||||
import { getTranslator } from '../app/locale';
|
import { getTranslator } from '../app/locale';
|
||||||
|
import { setTranslate } from '../app/utils';
|
||||||
|
|
||||||
import { delay } from '../app/utils';
|
import { delay } from '../app/utils';
|
||||||
|
|
||||||
if (navigator.userAgent === 'Send Android') {
|
if (navigator.userAgent === 'Send Android') {
|
||||||
|
@ -69,6 +71,7 @@ function body(main) {
|
||||||
}
|
}
|
||||||
(async function start() {
|
(async function start() {
|
||||||
const translate = await getTranslator('en-US');
|
const translate = await getTranslator('en-US');
|
||||||
|
setTranslate(translate);
|
||||||
const { LIMITS, DEFAULTS } = await getConstants();
|
const { LIMITS, DEFAULTS } = await getConstants();
|
||||||
app.use(state => {
|
app.use(state => {
|
||||||
state.LIMITS = LIMITS;
|
state.LIMITS = LIMITS;
|
||||||
|
|
Loading…
Reference in a new issue