diff options
Diffstat (limited to 'app/i18n')
-rw-r--r-- | app/i18n/i18n.ts | 10 | ||||
-rw-r--r-- | app/i18n/index.ts | 6 | ||||
-rw-r--r-- | app/i18n/translate.ts | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/app/i18n/i18n.ts b/app/i18n/i18n.ts index a563bbb..b29e80b 100644 --- a/app/i18n/i18n.ts +++ b/app/i18n/i18n.ts @@ -1,12 +1,12 @@ -import * as Localization from "expo-localization" -import i18n from "i18n-js" -import en from "./en.json" -import ja from "./ja.json" +import * as Localization from 'expo-localization' +import i18n from 'i18n-js' +import en from './en.json' +import ja from './ja.json' i18n.fallbacks = true i18n.translations = { en, ja } -i18n.locale = Localization.locale || "en" +i18n.locale = Localization.locale || 'en' /** * Builds up valid keypaths for translations. diff --git a/app/i18n/index.ts b/app/i18n/index.ts index fbfba4e..b0ff148 100644 --- a/app/i18n/index.ts +++ b/app/i18n/index.ts @@ -1,3 +1,3 @@ -import "./i18n" -export * from "./i18n" -export * from "./translate" +import './i18n' +export * from './i18n' +export * from './translate' diff --git a/app/i18n/translate.ts b/app/i18n/translate.ts index ef1a019..6481874 100644 --- a/app/i18n/translate.ts +++ b/app/i18n/translate.ts @@ -1,5 +1,5 @@ -import i18n from "i18n-js" -import { TxKeyPath } from "./i18n" +import i18n from 'i18n-js' +import { TxKeyPath } from './i18n' /** * Translates text. |