This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
431 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import i18n from 'i18next'; | ||
import LanguageDetector from 'i18next-browser-languagedetector'; | ||
import { initReactI18next } from 'react-i18next'; | ||
|
||
import translationAR from './locales/ar/translations'; | ||
import translationDE from './locales/de/translations'; | ||
import translationEN from './locales/en/translations'; | ||
import translationES from './locales/es/translations'; | ||
import translationIN from './locales/in/translations'; | ||
import translationJA from './locales/ja/translations'; | ||
import translationPT from './locales/pt/translations'; | ||
import translationRU from './locales/ru/translations'; | ||
import translationZR from './locales/zr/translations'; | ||
|
||
const resources = { | ||
ar: { | ||
translation: translationAR, | ||
}, | ||
de: { | ||
translation: translationDE, | ||
}, | ||
en: { | ||
translation: translationEN, | ||
}, | ||
es: { | ||
translation: translationES, | ||
}, | ||
in: { | ||
translation: translationIN, | ||
}, | ||
ja: { | ||
translation: translationJA, | ||
}, | ||
pt: { | ||
translation: translationPT, | ||
}, | ||
ru: { | ||
translation: translationRU, | ||
}, | ||
zr: { | ||
translation: translationZR, | ||
}, | ||
}; | ||
|
||
i18n | ||
// load translation using xhr -> see /public/locales | ||
// learn more: https://github.com/i18next/i18next-xhr-backend | ||
// detect user language | ||
// learn more: https://github.com/i18next/i18next-browser-languageDetector | ||
.use(LanguageDetector) | ||
// pass the i18n instance to react-i18next. | ||
.use(initReactI18next) | ||
// init i18next | ||
// for all options read: https://www.i18next.com/overview/configuration-options | ||
.init({ | ||
fallbackLng: 'en', | ||
debug: true, | ||
resources: resources, | ||
interpolation: { | ||
escapeValue: false, // not needed for react as it escapes by default | ||
}, | ||
}); | ||
|
||
export default i18n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default { | ||
"actions": { | ||
"edit": "تصحيح", | ||
"save": "حفظ", | ||
"cancel": "إلغاء", | ||
"new": "الجديد", | ||
"list": "قائمة" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default { | ||
"dashboard": { | ||
"label": "لوحة القيادة" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import actions from './actions'; | ||
import dashboard from './dashboard'; | ||
import patient from './patient'; | ||
import patients from './patients'; | ||
|
||
export default { | ||
...actions, | ||
...dashboard, | ||
...patient, | ||
...patients, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
"patient": { | ||
"firstName": "الاسم الاول", | ||
"lastName": "الكنية" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default { | ||
"patients": { | ||
"label": "المرضى", | ||
"viewPatients": "عرض المرضى", | ||
"viewPatient": "عرض المريض", | ||
"newPatient": "مريض جديد" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default { | ||
"actions": { | ||
"edit": "Bearbeiten", | ||
"save": "speichern", | ||
"cancel": "Stornieren", | ||
"new": "Neu", | ||
"list": "Liste" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default { | ||
"dashboard": { | ||
"label": "Instrumententafel" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import actions from './actions'; | ||
import dashboard from './dashboard'; | ||
import patient from './patient'; | ||
import patients from './patients'; | ||
|
||
export default { | ||
...actions, | ||
...dashboard, | ||
...patient, | ||
...patients, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
"patient": { | ||
"firstName": "Vorname", | ||
"lastName": "Nachname" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default { | ||
"patients": { | ||
"label": "Patienten", | ||
"viewPatients": "Patienten anzeigen", | ||
"viewPatient": "Patient anzeigen", | ||
"newPatient": "Neuer Patient" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default { | ||
"actions": { | ||
"edit": "Edit", | ||
"save": "Save", | ||
"cancel": "Cancel", | ||
"new": "New", | ||
"list": "List" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default { | ||
"dashboard": { | ||
"label": "Dashboard" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import actions from './actions'; | ||
import dashboard from './dashboard'; | ||
import patient from './patient'; | ||
import patients from './patients'; | ||
|
||
export default { | ||
...actions, | ||
...dashboard, | ||
...patient, | ||
...patients, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
"patient": { | ||
"firstName": "First Name", | ||
"lastName": "Last Name" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default { | ||
"patients": { | ||
"label": "Patients", | ||
"viewPatients": "View Patients", | ||
"viewPatient": "View Patient", | ||
"newPatient": "New Patient" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default { | ||
"actions": { | ||
"edit": "Editar", | ||
"save": "Guardar", | ||
"cancel": "Cancelar", | ||
"new": "Nuevo", | ||
"list": "Lista" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default { | ||
"dashboard": { | ||
"label": "Panel" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import actions from './actions'; | ||
import dashboard from './dashboard'; | ||
import patient from './patient'; | ||
import patients from './patients'; | ||
|
||
export default { | ||
...actions, | ||
...dashboard, | ||
...patient, | ||
...patients, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
"patient": { | ||
"firstName": "Nombre de pila", | ||
"lastName": "Apellido" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default { | ||
"patients": { | ||
"label": "Pacientes", | ||
"viewPatients": "Ver pacientes", | ||
"viewPatient": "Ver pacientes", | ||
"newPatient": "Nuevo paciente" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default { | ||
"actions": { | ||
"edit": "Edit", | ||
"save": "Menyimpan", | ||
"cancel": "Membatalkan", | ||
"new": "Baru", | ||
"list": "Daftar" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default { | ||
"dashboard": { | ||
"label": "Dasbor" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import actions from './actions'; | ||
import dashboard from './dashboard'; | ||
import patient from './patient'; | ||
import patients from './patients'; | ||
|
||
export default { | ||
...actions, | ||
...dashboard, | ||
...patient, | ||
...patients, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
"patient": { | ||
"firstName": "Nama depan", | ||
"lastName": "Nama keluarga" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default { | ||
"patients": { | ||
"label": "Pasien", | ||
"viewPatients": "Lihat Pasien", | ||
"viewPatient": "Lihat Pasien", | ||
"newPatient": "Pasien Baru" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default { | ||
"actions": { | ||
"edit": "編集", | ||
"save": "セーブ", | ||
"cancel": "キャンセル", | ||
"new": "新しい", | ||
"list": "リスト" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default { | ||
"dashboard": { | ||
"label": "ダッシュボード" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import actions from './actions'; | ||
import dashboard from './dashboard'; | ||
import patient from './patient'; | ||
import patients from './patients'; | ||
|
||
export default { | ||
...actions, | ||
...dashboard, | ||
...patient, | ||
...patients, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
"patient": { | ||
"firstName": "ファーストネーム", | ||
"lastName": "苗字" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default { | ||
"patients": { | ||
"label": "患者さん", | ||
"viewPatients": "患者を見る", | ||
"viewPatient": "患者を見る", | ||
"newPatient": "新しい患者" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default { | ||
"actions": { | ||
"edit": "Editar", | ||
"save": "Salvar", | ||
"cancel": "Cancelar", | ||
"new": "Novo", | ||
"list": "Lista" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default { | ||
"dashboard": { | ||
"label": "Painel de controle" | ||
} | ||
} |
Oops, something went wrong.