Skip to content

Commit

Permalink
Call setTranslate on android.
Browse files Browse the repository at this point in the history
  • Loading branch information
fzzzy committed Apr 4, 2019
1 parent 4c1496e commit 4a69ccb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions android/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import share from './pages/share';
import preferences from './pages/preferences';
import error from './pages/error';
import { getTranslator } from '../app/locale';
import { setTranslate } from '../app/utils';

import { delay } from '../app/utils';

if (navigator.userAgent === 'Send Android') {
Expand Down Expand Up @@ -69,6 +71,7 @@ function body(main) {
}
(async function start() {
const translate = await getTranslator('en-US');
setTranslate(translate);
const { LIMITS, DEFAULTS } = await getConstants();
app.use(state => {
state.LIMITS = LIMITS;
Expand Down

0 comments on commit 4a69ccb

Please sign in to comment.