parent
ce1b2578cf
commit
40a2d527a0
10 changed files with 180 additions and 18 deletions
@ -1 +1,2 @@ |
||||
export const PROFILE_RECORD = 'PROFILE_RECORD'; |
||||
export const PROFILE_RECORD = 'PROFILE_RECORD'; |
||||
export const APP_CONFIG = 'APP_CONFIG'; |
||||
|
@ -0,0 +1,14 @@ |
||||
import i18n from "i18next"; |
||||
import { initReactI18next } from "react-i18next"; |
||||
import resources from './locales' |
||||
|
||||
i18n.use(initReactI18next).init({ |
||||
resources: resources, |
||||
lng: "fa", |
||||
fallbackLng: "fa", |
||||
interpolation: { |
||||
escapeValue: false |
||||
}
|
||||
}); |
||||
|
||||
export default i18n; |
@ -0,0 +1,28 @@ |
||||
{ |
||||
"main": { |
||||
"home": "Home", |
||||
"settings": "Settings", |
||||
"profile": "Profile", |
||||
"filter": "filter" |
||||
}, |
||||
"filter": { |
||||
"newest": "newest", |
||||
"oldest": "oldest" |
||||
}, |
||||
"profile": { |
||||
"first name": "first name", |
||||
"last name": "last name", |
||||
"birthday": "birthday", |
||||
"gender": "gender", |
||||
"addresses": "addresses", |
||||
"day": "day", |
||||
"month": "month", |
||||
"year": "year", |
||||
"male": "male", |
||||
"female": "female", |
||||
"submit changes": "submit changes" |
||||
}, |
||||
"settings": { |
||||
"language": "language" |
||||
} |
||||
} |
@ -0,0 +1,29 @@ |
||||
{ |
||||
"main": { |
||||
"home": "صفحه اصلی", |
||||
"books": "کتاب ها", |
||||
"videos": "ویدئوها", |
||||
"exams": "آزمون ها", |
||||
"profile": "حساب کاربری" |
||||
}, |
||||
"filter": { |
||||
"newest": "جدیدترین", |
||||
"oldest": "قدیمی ترین" |
||||
}, |
||||
"profile": { |
||||
"first name": "نام", |
||||
"last name": "نام خانوادگی", |
||||
"birthday": "تاریخ تولد", |
||||
"gender": "جنسیت", |
||||
"addresses": "آدرس ها", |
||||
"day": "روز", |
||||
"month": "ماه", |
||||
"year": "سال", |
||||
"male": "آقا", |
||||
"female": "خانم", |
||||
"submit changes": "ثبت تغییرات" |
||||
}, |
||||
"settings": { |
||||
"language": "زبان" |
||||
} |
||||
} |
@ -0,0 +1,11 @@ |
||||
import en from './en/translation.json'; |
||||
import fa from './fa/translation.json'; |
||||
|
||||
export default { |
||||
en: { |
||||
translation: en |
||||
}, |
||||
fa: { |
||||
translation: fa |
||||
} |
||||
} |
Loading…
Reference in new issue