-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSTRINGS.ts
41 lines (37 loc) · 1.14 KB
/
STRINGS.ts
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
33
34
35
36
37
38
39
40
41
import * as Localization from 'expo-localization';
import i18n from 'i18n-js';
const en = {
SIGN_IN_WITH_GOOGLE: 'Sign in with Google',
SIGN_IN_WITH_FACEBOOK: 'Sign in with Facebook',
INTRO_TITLE_1: 'Regular payment',
INTRO_TITLE_2: 'Subscription',
INTRO_TITLE_3: 'Automatic transfer',
INTRO_TITLE_4: 'Monthly com',
INTRO_TITLE_5: 'Regular delivery',
INTRO_MESSAGE: 'Do not forget\nBe smart',
INTRO_WHATSSUB: 'Whats-Sub',
NAVIGATE: 'Navigate',
CHANGE_THEME: 'Change theme',
};
const ko = {
SIGN_IN_WITH_GOOGLE: '구글 계정으로 시작하기',
SIGN_IN_WITH_FACEBOOK: '페이스북 계정으로 시작하기',
INTRO_TITLE_1: '정기결제',
INTRO_TITLE_2: '구독',
INTRO_TITLE_3: '자동이체',
INTRO_TITLE_4: '월 정액',
INTRO_TITLE_5: '정기배송',
INTRO_MESSAGE: '잊지말고\n똑똑하게',
INTRO_WHATSSUB: '왓-썹',
NAVIGATE: '이동하기',
CHANGE_THEME: '테마 변경',
};
i18n.fallbacks = true;
i18n.translations = { en, ko };
i18n.locale = Localization.locale;
export const getString = (param: string, mapObj?: object) => {
if (mapObj) {
i18n.t(param, mapObj);
}
return i18n.t(param);
};