forked from ripple/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbaseConfig.ts
More file actions
32 lines (30 loc) · 814 Bytes
/
baseConfig.ts
File metadata and controls
32 lines (30 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { InitOptions } from 'i18next'
export const supportedLanguages = {
'en-US': 'English',
'ja-JP': '日本語',
'ko-KR': '한국어',
'es-ES': 'Español',
'fr-FR': 'Français',
'ca-CA': 'Catalan',
'my-MM': 'မြန်မာ',
}
export const options: InitOptions = {
returnNull: false,
debug: process.env.NODE_ENV === 'development',
fallbackLng: 'en-US',
ns: ['translations'], // have a common namespace used around the full app
defaultNS: 'translations',
keySeparator: false, // we use content as keys
interpolation: {
escapeValue: false, // not needed for react!!
formatSeparator: ',',
},
supportedLngs: Object.keys(supportedLanguages),
react: {
useSuspense: true,
},
backend: {
loadPath: '/locales/{{lng}}/{{ns}}.json',
},
load: 'currentOnly',
}