From 03729e5edd919d1e8e392daac2581d7a4b2c8edb Mon Sep 17 00:00:00 2001 From: Bruno Costa Date: Wed, 11 Dec 2019 19:27:10 -0300 Subject: [PATCH 01/11] feat(i18n): add translation resources Add 8 other most used languages on the internet to static i18n translation resources with initial rough translations from google tranlsate. --- public/locales/ar/translation.json | 22 ++++++++++++++++++++++ public/locales/de/translation.json | 22 ++++++++++++++++++++++ public/locales/es/translation.json | 22 ++++++++++++++++++++++ public/locales/in/translation.json | 22 ++++++++++++++++++++++ public/locales/ja/translation.json | 22 ++++++++++++++++++++++ public/locales/pt/translation.json | 22 ++++++++++++++++++++++ public/locales/ru/translation.json | 22 ++++++++++++++++++++++ public/locales/zr/translation.json | 22 ++++++++++++++++++++++ 8 files changed, 176 insertions(+) create mode 100644 public/locales/ar/translation.json create mode 100644 public/locales/de/translation.json create mode 100644 public/locales/es/translation.json create mode 100644 public/locales/in/translation.json create mode 100644 public/locales/ja/translation.json create mode 100644 public/locales/pt/translation.json create mode 100644 public/locales/ru/translation.json create mode 100644 public/locales/zr/translation.json diff --git a/public/locales/ar/translation.json b/public/locales/ar/translation.json new file mode 100644 index 0000000000..a2c5eca0f6 --- /dev/null +++ b/public/locales/ar/translation.json @@ -0,0 +1,22 @@ +{ + "dashboard": { + "label": "لوحة القيادة" + }, + "patients": { + "label": "المرضى", + "viewPatients": "عرض المرضى", + "viewPatient": "عرض المريض", + "newPatient": "مريض جديد" + }, + "patient": { + "firstName": "الاسم الاول", + "lastName": "الكنية" + }, + "actions": { + "edit": "تصحيح", + "save": "حفظ", + "cancel": "إلغاء", + "new": "الجديد", + "list": "قائمة" + } +} \ No newline at end of file diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json new file mode 100644 index 0000000000..84e8a8d53f --- /dev/null +++ b/public/locales/de/translation.json @@ -0,0 +1,22 @@ +{ + "dashboard": { + "label": "Dashboard" + }, + "patients": { + "label": "Patienten", + "viewPatients": "Patienten anzeigen", + "viewPatient": "Patient anzeigen", + "newPatient": "Neuer Patient" + }, + "patient": { + "firstName": "Vorname", + "lastName": "Nachname" + }, + "actions": { + "edit": "Bearbeiten", + "save": "speichern", + "cancel": "Stornieren", + "new": "Neu", + "list": "Liste" + } +} \ No newline at end of file diff --git a/public/locales/es/translation.json b/public/locales/es/translation.json new file mode 100644 index 0000000000..79bb1544cd --- /dev/null +++ b/public/locales/es/translation.json @@ -0,0 +1,22 @@ +{ + "dashboard": { + "label": "Panel" + }, + "patients": { + "label": "Pacientes", + "viewPatients": "Ver pacientes", + "viewPatient": "Ver pacientes", + "newPatient": "Nuevo paciente" + }, + "patient": { + "firstName": "Nombre de pila", + "lastName": "Apellido" + }, + "actions": { + "edit": "Editar", + "save": "Guardar", + "cancel": "Cancelar", + "new": "Nuevo", + "list": "Lista" + } +} \ No newline at end of file diff --git a/public/locales/in/translation.json b/public/locales/in/translation.json new file mode 100644 index 0000000000..98486397f4 --- /dev/null +++ b/public/locales/in/translation.json @@ -0,0 +1,22 @@ +{ + "dashboard": { + "label": "Dasbor" + }, + "patients": { + "label": "Pasien", + "viewPatients": "Lihat Pasien", + "viewPatient": "Lihat Pasien", + "newPatient": "Pasien Baru" + }, + "patient": { + "firstName": "Nama depan", + "lastName": "Nama keluarga" + }, + "actions": { + "edit": "Edit", + "save": "Menyimpan", + "cancel": "Membatalkan", + "new": "Baru", + "list": "Daftar" + } +} \ No newline at end of file diff --git a/public/locales/ja/translation.json b/public/locales/ja/translation.json new file mode 100644 index 0000000000..e86979a4cb --- /dev/null +++ b/public/locales/ja/translation.json @@ -0,0 +1,22 @@ +{ + "dashboard": { + "label": "ダッシュボード" + }, + "patients": { + "label": "患者さん", + "viewPatients": "患者を見る", + "viewPatient": "患者を見る", + "newPatient": "新しい患者" + }, + "patient": { + "firstName": "ファーストネーム", + "lastName": "苗字" + }, + "actions": { + "edit": "編集", + "save": "セーブ", + "cancel": "キャンセル", + "new": "新しい", + "list": "リスト" + } +} \ No newline at end of file diff --git a/public/locales/pt/translation.json b/public/locales/pt/translation.json new file mode 100644 index 0000000000..e6c9c10bbe --- /dev/null +++ b/public/locales/pt/translation.json @@ -0,0 +1,22 @@ +{ + "dashboard": { + "label": "Painel de controle" + }, + "patients": { + "label": "Pacientes", + "viewPatients": "Exibir pacientes", + "viewPatient": "Ver paciente", + "newPatient": "Novo Paciente" + }, + "patient": { + "firstName": "Primeiro nome", + "lastName": "Último nome" + }, + "actions": { + "edit": "Editar", + "save": "Salvar", + "cancel": "Cancelar", + "new": "Novo", + "list": "Lista" + } +} \ No newline at end of file diff --git a/public/locales/ru/translation.json b/public/locales/ru/translation.json new file mode 100644 index 0000000000..c69271c627 --- /dev/null +++ b/public/locales/ru/translation.json @@ -0,0 +1,22 @@ +{ + "dashboard": { + "label": "Панель приборов" + }, + "patients": { + "label": "Пациенты", + "viewPatients": "Просмотр пациентов", + "viewPatient": "Просмотр пациента", + "newPatient": "Новый пациент" + }, + "patient": { + "firstName": "Имя", + "lastName": "Фамилия" + }, + "actions": { + "edit": "редактировать", + "save": "Сохранить", + "cancel": "Отмена", + "new": "новый", + "list": "Список" + } +} \ No newline at end of file diff --git a/public/locales/zr/translation.json b/public/locales/zr/translation.json new file mode 100644 index 0000000000..ce95884721 --- /dev/null +++ b/public/locales/zr/translation.json @@ -0,0 +1,22 @@ +{ + "dashboard": { + "label": "仪表板" + }, + "patients": { + "label": "耐心", + "viewPatients": "查看患者", + "viewPatient": "查看患者", + "newPatient": "新病人" + }, + "patient": { + "firstName": "名字", + "lastName": "姓" + }, + "actions": { + "edit": "编辑", + "save": "保存", + "cancel": "取消", + "new": "新", + "list": "清单" + } +} \ No newline at end of file From b1e830c256a5667e39dd198f6cc09aa9eedcf51b Mon Sep 17 00:00:00 2001 From: Bruno Costa Date: Fri, 13 Dec 2019 13:34:02 -0300 Subject: [PATCH 02/11] refactor: improve-translation-resources-structure fix #1668 --- public/{locales => app-sections/languages}/ar/translation.json | 0 public/{locales => app-sections/languages}/de/translation.json | 0 public/{locales => app-sections/languages}/en/translation.json | 0 public/{locales => app-sections/languages}/es/translation.json | 0 public/{locales => app-sections/languages}/in/translation.json | 0 public/{locales => app-sections/languages}/ja/translation.json | 0 public/{locales => app-sections/languages}/pt/translation.json | 0 public/{locales => app-sections/languages}/ru/translation.json | 0 public/{locales => app-sections/languages}/zr/translation.json | 0 src/i18n.js | 2 +- 10 files changed, 1 insertion(+), 1 deletion(-) rename public/{locales => app-sections/languages}/ar/translation.json (100%) rename public/{locales => app-sections/languages}/de/translation.json (100%) rename public/{locales => app-sections/languages}/en/translation.json (100%) rename public/{locales => app-sections/languages}/es/translation.json (100%) rename public/{locales => app-sections/languages}/in/translation.json (100%) rename public/{locales => app-sections/languages}/ja/translation.json (100%) rename public/{locales => app-sections/languages}/pt/translation.json (100%) rename public/{locales => app-sections/languages}/ru/translation.json (100%) rename public/{locales => app-sections/languages}/zr/translation.json (100%) diff --git a/public/locales/ar/translation.json b/public/app-sections/languages/ar/translation.json similarity index 100% rename from public/locales/ar/translation.json rename to public/app-sections/languages/ar/translation.json diff --git a/public/locales/de/translation.json b/public/app-sections/languages/de/translation.json similarity index 100% rename from public/locales/de/translation.json rename to public/app-sections/languages/de/translation.json diff --git a/public/locales/en/translation.json b/public/app-sections/languages/en/translation.json similarity index 100% rename from public/locales/en/translation.json rename to public/app-sections/languages/en/translation.json diff --git a/public/locales/es/translation.json b/public/app-sections/languages/es/translation.json similarity index 100% rename from public/locales/es/translation.json rename to public/app-sections/languages/es/translation.json diff --git a/public/locales/in/translation.json b/public/app-sections/languages/in/translation.json similarity index 100% rename from public/locales/in/translation.json rename to public/app-sections/languages/in/translation.json diff --git a/public/locales/ja/translation.json b/public/app-sections/languages/ja/translation.json similarity index 100% rename from public/locales/ja/translation.json rename to public/app-sections/languages/ja/translation.json diff --git a/public/locales/pt/translation.json b/public/app-sections/languages/pt/translation.json similarity index 100% rename from public/locales/pt/translation.json rename to public/app-sections/languages/pt/translation.json diff --git a/public/locales/ru/translation.json b/public/app-sections/languages/ru/translation.json similarity index 100% rename from public/locales/ru/translation.json rename to public/app-sections/languages/ru/translation.json diff --git a/public/locales/zr/translation.json b/public/app-sections/languages/zr/translation.json similarity index 100% rename from public/locales/zr/translation.json rename to public/app-sections/languages/zr/translation.json diff --git a/src/i18n.js b/src/i18n.js index c384329296..31835373b1 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -4,7 +4,7 @@ import LanguageDetector from 'i18next-browser-languagedetector' import { initReactI18next } from 'react-i18next' i18n - // load translation using xhr -> see /public/locales + // load translation using xhr -> see /public/app-sections/languages // learn more: https://github.com/i18next/i18next-xhr-backend .use(Backend) // detect user language From 642d5fe7625ae6530dc1387cf38445539fedd02c Mon Sep 17 00:00:00 2001 From: Bruno Costa Date: Sun, 5 Jan 2020 04:13:15 -0300 Subject: [PATCH 03/11] refactor: organize static translations into subfolders re #1668 --- .../languages/ar/translation.json | 22 ------------------- .../languages/de/translation.json | 22 ------------------- .../languages/en/translation.json | 22 ------------------- .../languages/es/translation.json | 22 ------------------- .../languages/in/translation.json | 22 ------------------- .../languages/ja/translation.json | 22 ------------------- .../languages/pt/translation.json | 22 ------------------- .../languages/ru/translation.json | 22 ------------------- .../languages/zr/translation.json | 22 ------------------- .../translations/actions/ar/translation.json | 7 ++++++ .../translations/actions/de/translation.json | 7 ++++++ .../translations/actions/en/translation.json | 7 ++++++ .../translations/actions/es/translation.json | 7 ++++++ .../translations/actions/in/translation.json | 7 ++++++ .../translations/actions/ja/translation.json | 7 ++++++ .../translations/actions/pt/translation.json | 7 ++++++ .../translations/actions/ru/translation.json | 7 ++++++ .../translations/actions/zr/translation.json | 7 ++++++ .../dashboard/ar/translation.json | 3 +++ .../dashboard/de/translation.json | 3 +++ .../dashboard/en/translation.json | 3 +++ .../dashboard/es/translation.json | 3 +++ .../dashboard/in/translation.json | 3 +++ .../dashboard/ja/translation.json | 3 +++ .../dashboard/pt/translation.json | 3 +++ .../dashboard/ru/translation.json | 3 +++ .../dashboard/zr/translation.json | 3 +++ .../translations/patient/ar/translation.json | 4 ++++ .../translations/patient/de/translation.json | 4 ++++ .../translations/patient/en/translation.json | 4 ++++ .../translations/patient/es/translation.json | 4 ++++ .../translations/patient/in/translation.json | 4 ++++ .../translations/patient/ja/translation.json | 4 ++++ .../translations/patient/pt/translation.json | 4 ++++ .../translations/patient/ru/translation.json | 4 ++++ .../translations/patient/zr/translation.json | 4 ++++ .../translations/patients/ar/translation.json | 6 +++++ .../translations/patients/de/translation.json | 6 +++++ .../translations/patients/en/translation.json | 6 +++++ .../translations/patients/es/translation.json | 6 +++++ .../translations/patients/in/translation.json | 6 +++++ .../translations/patients/ja/translation.json | 6 +++++ .../translations/patients/pt/translation.json | 6 +++++ .../translations/patients/ru/translation.json | 6 +++++ .../translations/patients/zr/translation.json | 6 +++++ 45 files changed, 180 insertions(+), 198 deletions(-) delete mode 100644 public/app-sections/languages/ar/translation.json delete mode 100644 public/app-sections/languages/de/translation.json delete mode 100644 public/app-sections/languages/en/translation.json delete mode 100644 public/app-sections/languages/es/translation.json delete mode 100644 public/app-sections/languages/in/translation.json delete mode 100644 public/app-sections/languages/ja/translation.json delete mode 100644 public/app-sections/languages/pt/translation.json delete mode 100644 public/app-sections/languages/ru/translation.json delete mode 100644 public/app-sections/languages/zr/translation.json create mode 100644 public/translations/actions/ar/translation.json create mode 100644 public/translations/actions/de/translation.json create mode 100644 public/translations/actions/en/translation.json create mode 100644 public/translations/actions/es/translation.json create mode 100644 public/translations/actions/in/translation.json create mode 100644 public/translations/actions/ja/translation.json create mode 100644 public/translations/actions/pt/translation.json create mode 100644 public/translations/actions/ru/translation.json create mode 100644 public/translations/actions/zr/translation.json create mode 100644 public/translations/dashboard/ar/translation.json create mode 100644 public/translations/dashboard/de/translation.json create mode 100644 public/translations/dashboard/en/translation.json create mode 100644 public/translations/dashboard/es/translation.json create mode 100644 public/translations/dashboard/in/translation.json create mode 100644 public/translations/dashboard/ja/translation.json create mode 100644 public/translations/dashboard/pt/translation.json create mode 100644 public/translations/dashboard/ru/translation.json create mode 100644 public/translations/dashboard/zr/translation.json create mode 100644 public/translations/patient/ar/translation.json create mode 100644 public/translations/patient/de/translation.json create mode 100644 public/translations/patient/en/translation.json create mode 100644 public/translations/patient/es/translation.json create mode 100644 public/translations/patient/in/translation.json create mode 100644 public/translations/patient/ja/translation.json create mode 100644 public/translations/patient/pt/translation.json create mode 100644 public/translations/patient/ru/translation.json create mode 100644 public/translations/patient/zr/translation.json create mode 100644 public/translations/patients/ar/translation.json create mode 100644 public/translations/patients/de/translation.json create mode 100644 public/translations/patients/en/translation.json create mode 100644 public/translations/patients/es/translation.json create mode 100644 public/translations/patients/in/translation.json create mode 100644 public/translations/patients/ja/translation.json create mode 100644 public/translations/patients/pt/translation.json create mode 100644 public/translations/patients/ru/translation.json create mode 100644 public/translations/patients/zr/translation.json diff --git a/public/app-sections/languages/ar/translation.json b/public/app-sections/languages/ar/translation.json deleted file mode 100644 index a2c5eca0f6..0000000000 --- a/public/app-sections/languages/ar/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "dashboard": { - "label": "لوحة القيادة" - }, - "patients": { - "label": "المرضى", - "viewPatients": "عرض المرضى", - "viewPatient": "عرض المريض", - "newPatient": "مريض جديد" - }, - "patient": { - "firstName": "الاسم الاول", - "lastName": "الكنية" - }, - "actions": { - "edit": "تصحيح", - "save": "حفظ", - "cancel": "إلغاء", - "new": "الجديد", - "list": "قائمة" - } -} \ No newline at end of file diff --git a/public/app-sections/languages/de/translation.json b/public/app-sections/languages/de/translation.json deleted file mode 100644 index 84e8a8d53f..0000000000 --- a/public/app-sections/languages/de/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "dashboard": { - "label": "Dashboard" - }, - "patients": { - "label": "Patienten", - "viewPatients": "Patienten anzeigen", - "viewPatient": "Patient anzeigen", - "newPatient": "Neuer Patient" - }, - "patient": { - "firstName": "Vorname", - "lastName": "Nachname" - }, - "actions": { - "edit": "Bearbeiten", - "save": "speichern", - "cancel": "Stornieren", - "new": "Neu", - "list": "Liste" - } -} \ No newline at end of file diff --git a/public/app-sections/languages/en/translation.json b/public/app-sections/languages/en/translation.json deleted file mode 100644 index 3a5ff892a1..0000000000 --- a/public/app-sections/languages/en/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "dashboard": { - "label": "Dashboard" - }, - "patients": { - "label": "Patients", - "viewPatients": "View Patients", - "viewPatient": "View Patient", - "newPatient": "New Patient" - }, - "patient": { - "firstName": "First Name", - "lastName": "Last Name" - }, - "actions": { - "edit": "Edit", - "save": "Save", - "cancel": "Cancel", - "new": "New", - "list": "List" - } -} \ No newline at end of file diff --git a/public/app-sections/languages/es/translation.json b/public/app-sections/languages/es/translation.json deleted file mode 100644 index 79bb1544cd..0000000000 --- a/public/app-sections/languages/es/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "dashboard": { - "label": "Panel" - }, - "patients": { - "label": "Pacientes", - "viewPatients": "Ver pacientes", - "viewPatient": "Ver pacientes", - "newPatient": "Nuevo paciente" - }, - "patient": { - "firstName": "Nombre de pila", - "lastName": "Apellido" - }, - "actions": { - "edit": "Editar", - "save": "Guardar", - "cancel": "Cancelar", - "new": "Nuevo", - "list": "Lista" - } -} \ No newline at end of file diff --git a/public/app-sections/languages/in/translation.json b/public/app-sections/languages/in/translation.json deleted file mode 100644 index 98486397f4..0000000000 --- a/public/app-sections/languages/in/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "dashboard": { - "label": "Dasbor" - }, - "patients": { - "label": "Pasien", - "viewPatients": "Lihat Pasien", - "viewPatient": "Lihat Pasien", - "newPatient": "Pasien Baru" - }, - "patient": { - "firstName": "Nama depan", - "lastName": "Nama keluarga" - }, - "actions": { - "edit": "Edit", - "save": "Menyimpan", - "cancel": "Membatalkan", - "new": "Baru", - "list": "Daftar" - } -} \ No newline at end of file diff --git a/public/app-sections/languages/ja/translation.json b/public/app-sections/languages/ja/translation.json deleted file mode 100644 index e86979a4cb..0000000000 --- a/public/app-sections/languages/ja/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "dashboard": { - "label": "ダッシュボード" - }, - "patients": { - "label": "患者さん", - "viewPatients": "患者を見る", - "viewPatient": "患者を見る", - "newPatient": "新しい患者" - }, - "patient": { - "firstName": "ファーストネーム", - "lastName": "苗字" - }, - "actions": { - "edit": "編集", - "save": "セーブ", - "cancel": "キャンセル", - "new": "新しい", - "list": "リスト" - } -} \ No newline at end of file diff --git a/public/app-sections/languages/pt/translation.json b/public/app-sections/languages/pt/translation.json deleted file mode 100644 index e6c9c10bbe..0000000000 --- a/public/app-sections/languages/pt/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "dashboard": { - "label": "Painel de controle" - }, - "patients": { - "label": "Pacientes", - "viewPatients": "Exibir pacientes", - "viewPatient": "Ver paciente", - "newPatient": "Novo Paciente" - }, - "patient": { - "firstName": "Primeiro nome", - "lastName": "Último nome" - }, - "actions": { - "edit": "Editar", - "save": "Salvar", - "cancel": "Cancelar", - "new": "Novo", - "list": "Lista" - } -} \ No newline at end of file diff --git a/public/app-sections/languages/ru/translation.json b/public/app-sections/languages/ru/translation.json deleted file mode 100644 index c69271c627..0000000000 --- a/public/app-sections/languages/ru/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "dashboard": { - "label": "Панель приборов" - }, - "patients": { - "label": "Пациенты", - "viewPatients": "Просмотр пациентов", - "viewPatient": "Просмотр пациента", - "newPatient": "Новый пациент" - }, - "patient": { - "firstName": "Имя", - "lastName": "Фамилия" - }, - "actions": { - "edit": "редактировать", - "save": "Сохранить", - "cancel": "Отмена", - "new": "новый", - "list": "Список" - } -} \ No newline at end of file diff --git a/public/app-sections/languages/zr/translation.json b/public/app-sections/languages/zr/translation.json deleted file mode 100644 index ce95884721..0000000000 --- a/public/app-sections/languages/zr/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "dashboard": { - "label": "仪表板" - }, - "patients": { - "label": "耐心", - "viewPatients": "查看患者", - "viewPatient": "查看患者", - "newPatient": "新病人" - }, - "patient": { - "firstName": "名字", - "lastName": "姓" - }, - "actions": { - "edit": "编辑", - "save": "保存", - "cancel": "取消", - "new": "新", - "list": "清单" - } -} \ No newline at end of file diff --git a/public/translations/actions/ar/translation.json b/public/translations/actions/ar/translation.json new file mode 100644 index 0000000000..e5bcee862f --- /dev/null +++ b/public/translations/actions/ar/translation.json @@ -0,0 +1,7 @@ +{ + "edit": "تصحيح", + "save": "حفظ", + "cancel": "إلغاء", + "new": "الجديد", + "list": "قائمة" +} diff --git a/public/translations/actions/de/translation.json b/public/translations/actions/de/translation.json new file mode 100644 index 0000000000..7a819ff973 --- /dev/null +++ b/public/translations/actions/de/translation.json @@ -0,0 +1,7 @@ +{ + "edit": "Bearbeiten", + "save": "speichern", + "cancel": "Stornieren", + "new": "Neu", + "list": "Liste" +} diff --git a/public/translations/actions/en/translation.json b/public/translations/actions/en/translation.json new file mode 100644 index 0000000000..fcc7553ea9 --- /dev/null +++ b/public/translations/actions/en/translation.json @@ -0,0 +1,7 @@ +{ + "edit": "Edit", + "save": "Save", + "cancel": "Cancel", + "new": "New", + "list": "List" +} diff --git a/public/translations/actions/es/translation.json b/public/translations/actions/es/translation.json new file mode 100644 index 0000000000..633664e99e --- /dev/null +++ b/public/translations/actions/es/translation.json @@ -0,0 +1,7 @@ +{ + "edit": "Editar", + "save": "Guardar", + "cancel": "Cancelar", + "new": "Nuevo", + "list": "Lista" +} diff --git a/public/translations/actions/in/translation.json b/public/translations/actions/in/translation.json new file mode 100644 index 0000000000..586ac04aff --- /dev/null +++ b/public/translations/actions/in/translation.json @@ -0,0 +1,7 @@ +{ + "edit": "Edit", + "save": "Menyimpan", + "cancel": "Membatalkan", + "new": "Baru", + "list": "Daftar" +} diff --git a/public/translations/actions/ja/translation.json b/public/translations/actions/ja/translation.json new file mode 100644 index 0000000000..e41a839268 --- /dev/null +++ b/public/translations/actions/ja/translation.json @@ -0,0 +1,7 @@ +{ + "edit": "編集", + "save": "セーブ", + "cancel": "キャンセル", + "new": "新しい", + "list": "リスト" +} diff --git a/public/translations/actions/pt/translation.json b/public/translations/actions/pt/translation.json new file mode 100644 index 0000000000..56eeb99314 --- /dev/null +++ b/public/translations/actions/pt/translation.json @@ -0,0 +1,7 @@ +{ + "edit": "Editar", + "save": "Salvar", + "cancel": "Cancelar", + "new": "Novo", + "list": "Lista" +} diff --git a/public/translations/actions/ru/translation.json b/public/translations/actions/ru/translation.json new file mode 100644 index 0000000000..94591a0714 --- /dev/null +++ b/public/translations/actions/ru/translation.json @@ -0,0 +1,7 @@ +{ + "edit": "редактировать", + "save": "Сохранить", + "cancel": "Отмена", + "new": "новый", + "list": "Список" +} diff --git a/public/translations/actions/zr/translation.json b/public/translations/actions/zr/translation.json new file mode 100644 index 0000000000..3ada546c5a --- /dev/null +++ b/public/translations/actions/zr/translation.json @@ -0,0 +1,7 @@ +{ + "edit": "编辑", + "save": "保存", + "cancel": "取消", + "new": "新", + "list": "清单" +} diff --git a/public/translations/dashboard/ar/translation.json b/public/translations/dashboard/ar/translation.json new file mode 100644 index 0000000000..af1ee256fa --- /dev/null +++ b/public/translations/dashboard/ar/translation.json @@ -0,0 +1,3 @@ +{ + "label": "لوحة القيادة" +} diff --git a/public/translations/dashboard/de/translation.json b/public/translations/dashboard/de/translation.json new file mode 100644 index 0000000000..2a566bebe7 --- /dev/null +++ b/public/translations/dashboard/de/translation.json @@ -0,0 +1,3 @@ +{ + "label": "Dashboard" +} diff --git a/public/translations/dashboard/en/translation.json b/public/translations/dashboard/en/translation.json new file mode 100644 index 0000000000..2a566bebe7 --- /dev/null +++ b/public/translations/dashboard/en/translation.json @@ -0,0 +1,3 @@ +{ + "label": "Dashboard" +} diff --git a/public/translations/dashboard/es/translation.json b/public/translations/dashboard/es/translation.json new file mode 100644 index 0000000000..74b19e9afd --- /dev/null +++ b/public/translations/dashboard/es/translation.json @@ -0,0 +1,3 @@ +{ + "label": "Panel" +} diff --git a/public/translations/dashboard/in/translation.json b/public/translations/dashboard/in/translation.json new file mode 100644 index 0000000000..87c249706c --- /dev/null +++ b/public/translations/dashboard/in/translation.json @@ -0,0 +1,3 @@ +{ + "label": "Dasbor" +} diff --git a/public/translations/dashboard/ja/translation.json b/public/translations/dashboard/ja/translation.json new file mode 100644 index 0000000000..e26d8ee732 --- /dev/null +++ b/public/translations/dashboard/ja/translation.json @@ -0,0 +1,3 @@ +{ + "label": "ダッシュボード" +} diff --git a/public/translations/dashboard/pt/translation.json b/public/translations/dashboard/pt/translation.json new file mode 100644 index 0000000000..5edfd74ff1 --- /dev/null +++ b/public/translations/dashboard/pt/translation.json @@ -0,0 +1,3 @@ +{ + "label": "Painel de controle" +} diff --git a/public/translations/dashboard/ru/translation.json b/public/translations/dashboard/ru/translation.json new file mode 100644 index 0000000000..1c32f6ae61 --- /dev/null +++ b/public/translations/dashboard/ru/translation.json @@ -0,0 +1,3 @@ +{ + "label": "Панель приборов" +} diff --git a/public/translations/dashboard/zr/translation.json b/public/translations/dashboard/zr/translation.json new file mode 100644 index 0000000000..1795b4304a --- /dev/null +++ b/public/translations/dashboard/zr/translation.json @@ -0,0 +1,3 @@ +{ + "label": "仪表板" +} diff --git a/public/translations/patient/ar/translation.json b/public/translations/patient/ar/translation.json new file mode 100644 index 0000000000..33b8f58fd2 --- /dev/null +++ b/public/translations/patient/ar/translation.json @@ -0,0 +1,4 @@ +{ + "firstName": "الاسم الاول", + "lastName": "الكنية" +} diff --git a/public/translations/patient/de/translation.json b/public/translations/patient/de/translation.json new file mode 100644 index 0000000000..1858fa6833 --- /dev/null +++ b/public/translations/patient/de/translation.json @@ -0,0 +1,4 @@ +{ + "firstName": "Vorname", + "lastName": "Nachname" +} diff --git a/public/translations/patient/en/translation.json b/public/translations/patient/en/translation.json new file mode 100644 index 0000000000..6f283a5744 --- /dev/null +++ b/public/translations/patient/en/translation.json @@ -0,0 +1,4 @@ +{ + "firstName": "First Name", + "lastName": "Last Name" +} diff --git a/public/translations/patient/es/translation.json b/public/translations/patient/es/translation.json new file mode 100644 index 0000000000..b7bb3e6700 --- /dev/null +++ b/public/translations/patient/es/translation.json @@ -0,0 +1,4 @@ +{ + "firstName": "Nombre de pila", + "lastName": "Apellido" +} diff --git a/public/translations/patient/in/translation.json b/public/translations/patient/in/translation.json new file mode 100644 index 0000000000..b89af63dc6 --- /dev/null +++ b/public/translations/patient/in/translation.json @@ -0,0 +1,4 @@ +{ + "firstName": "Nama depan", + "lastName": "Nama keluarga" +} diff --git a/public/translations/patient/ja/translation.json b/public/translations/patient/ja/translation.json new file mode 100644 index 0000000000..d94fc8c0e8 --- /dev/null +++ b/public/translations/patient/ja/translation.json @@ -0,0 +1,4 @@ +{ + "firstName": "ファーストネーム", + "lastName": "苗字" +} diff --git a/public/translations/patient/pt/translation.json b/public/translations/patient/pt/translation.json new file mode 100644 index 0000000000..dfeb7b7e13 --- /dev/null +++ b/public/translations/patient/pt/translation.json @@ -0,0 +1,4 @@ +{ + "firstName": "Primeiro nome", + "lastName": "Último nome" +} diff --git a/public/translations/patient/ru/translation.json b/public/translations/patient/ru/translation.json new file mode 100644 index 0000000000..26c13923dc --- /dev/null +++ b/public/translations/patient/ru/translation.json @@ -0,0 +1,4 @@ +{ + "firstName": "Имя", + "lastName": "Фамилия" +} diff --git a/public/translations/patient/zr/translation.json b/public/translations/patient/zr/translation.json new file mode 100644 index 0000000000..8b66532a55 --- /dev/null +++ b/public/translations/patient/zr/translation.json @@ -0,0 +1,4 @@ +{ + "firstName": "名字", + "lastName": "姓" +} diff --git a/public/translations/patients/ar/translation.json b/public/translations/patients/ar/translation.json new file mode 100644 index 0000000000..7dd89820c8 --- /dev/null +++ b/public/translations/patients/ar/translation.json @@ -0,0 +1,6 @@ +{ + "label": "المرضى", + "viewPatients": "عرض المرضى", + "viewPatient": "عرض المريض", + "newPatient": "مريض جديد" +} diff --git a/public/translations/patients/de/translation.json b/public/translations/patients/de/translation.json new file mode 100644 index 0000000000..62c68da4c1 --- /dev/null +++ b/public/translations/patients/de/translation.json @@ -0,0 +1,6 @@ +{ + "label": "Patienten", + "viewPatients": "Patienten anzeigen", + "viewPatient": "Patient anzeigen", + "newPatient": "Neuer Patient" +} diff --git a/public/translations/patients/en/translation.json b/public/translations/patients/en/translation.json new file mode 100644 index 0000000000..c9463a6cdc --- /dev/null +++ b/public/translations/patients/en/translation.json @@ -0,0 +1,6 @@ +{ + "label": "Patients", + "viewPatients": "View Patients", + "viewPatient": "View Patient", + "newPatient": "New Patient" +} diff --git a/public/translations/patients/es/translation.json b/public/translations/patients/es/translation.json new file mode 100644 index 0000000000..8cbb4fddce --- /dev/null +++ b/public/translations/patients/es/translation.json @@ -0,0 +1,6 @@ +{ + "label": "Pacientes", + "viewPatients": "Ver pacientes", + "viewPatient": "Ver pacientes", + "newPatient": "Nuevo paciente" +} diff --git a/public/translations/patients/in/translation.json b/public/translations/patients/in/translation.json new file mode 100644 index 0000000000..55a9d45ccc --- /dev/null +++ b/public/translations/patients/in/translation.json @@ -0,0 +1,6 @@ +{ + "label": "Pasien", + "viewPatients": "Lihat Pasien", + "viewPatient": "Lihat Pasien", + "newPatient": "Pasien Baru" +} diff --git a/public/translations/patients/ja/translation.json b/public/translations/patients/ja/translation.json new file mode 100644 index 0000000000..8e4213e99b --- /dev/null +++ b/public/translations/patients/ja/translation.json @@ -0,0 +1,6 @@ +{ + "label": "患者さん", + "viewPatients": "患者を見る", + "viewPatient": "患者を見る", + "newPatient": "新しい患者" +} diff --git a/public/translations/patients/pt/translation.json b/public/translations/patients/pt/translation.json new file mode 100644 index 0000000000..a5bfb4eb1e --- /dev/null +++ b/public/translations/patients/pt/translation.json @@ -0,0 +1,6 @@ +{ + "label": "Pacientes", + "viewPatients": "Exibir pacientes", + "viewPatient": "Ver paciente", + "newPatient": "Novo Paciente" +} diff --git a/public/translations/patients/ru/translation.json b/public/translations/patients/ru/translation.json new file mode 100644 index 0000000000..05362dd37b --- /dev/null +++ b/public/translations/patients/ru/translation.json @@ -0,0 +1,6 @@ +{ + "label": "Пациенты", + "viewPatients": "Просмотр пациентов", + "viewPatient": "Просмотр пациента", + "newPatient": "Новый пациент" +} diff --git a/public/translations/patients/zr/translation.json b/public/translations/patients/zr/translation.json new file mode 100644 index 0000000000..d843cbfe4c --- /dev/null +++ b/public/translations/patients/zr/translation.json @@ -0,0 +1,6 @@ +{ + "label": "耐心", + "viewPatients": "查看患者", + "viewPatient": "查看患者", + "newPatient": "新病人" +} From 83923b2b08c24b39110a95422fcfef801710a762 Mon Sep 17 00:00:00 2001 From: Bruno Costa Date: Sun, 5 Jan 2020 04:27:31 -0300 Subject: [PATCH 04/11] refactor: rename translations folder re #1668 --- public/{translations => languages}/actions/ar/translation.json | 0 public/{translations => languages}/actions/de/translation.json | 0 public/{translations => languages}/actions/en/translation.json | 0 public/{translations => languages}/actions/es/translation.json | 0 public/{translations => languages}/actions/in/translation.json | 0 public/{translations => languages}/actions/ja/translation.json | 0 public/{translations => languages}/actions/pt/translation.json | 0 public/{translations => languages}/actions/ru/translation.json | 0 public/{translations => languages}/actions/zr/translation.json | 0 public/{translations => languages}/dashboard/ar/translation.json | 0 public/{translations => languages}/dashboard/de/translation.json | 0 public/{translations => languages}/dashboard/en/translation.json | 0 public/{translations => languages}/dashboard/es/translation.json | 0 public/{translations => languages}/dashboard/in/translation.json | 0 public/{translations => languages}/dashboard/ja/translation.json | 0 public/{translations => languages}/dashboard/pt/translation.json | 0 public/{translations => languages}/dashboard/ru/translation.json | 0 public/{translations => languages}/dashboard/zr/translation.json | 0 public/{translations => languages}/patient/ar/translation.json | 0 public/{translations => languages}/patient/de/translation.json | 0 public/{translations => languages}/patient/en/translation.json | 0 public/{translations => languages}/patient/es/translation.json | 0 public/{translations => languages}/patient/in/translation.json | 0 public/{translations => languages}/patient/ja/translation.json | 0 public/{translations => languages}/patient/pt/translation.json | 0 public/{translations => languages}/patient/ru/translation.json | 0 public/{translations => languages}/patient/zr/translation.json | 0 public/{translations => languages}/patients/ar/translation.json | 0 public/{translations => languages}/patients/de/translation.json | 0 public/{translations => languages}/patients/en/translation.json | 0 public/{translations => languages}/patients/es/translation.json | 0 public/{translations => languages}/patients/in/translation.json | 0 public/{translations => languages}/patients/ja/translation.json | 0 public/{translations => languages}/patients/pt/translation.json | 0 public/{translations => languages}/patients/ru/translation.json | 0 public/{translations => languages}/patients/zr/translation.json | 0 36 files changed, 0 insertions(+), 0 deletions(-) rename public/{translations => languages}/actions/ar/translation.json (100%) rename public/{translations => languages}/actions/de/translation.json (100%) rename public/{translations => languages}/actions/en/translation.json (100%) rename public/{translations => languages}/actions/es/translation.json (100%) rename public/{translations => languages}/actions/in/translation.json (100%) rename public/{translations => languages}/actions/ja/translation.json (100%) rename public/{translations => languages}/actions/pt/translation.json (100%) rename public/{translations => languages}/actions/ru/translation.json (100%) rename public/{translations => languages}/actions/zr/translation.json (100%) rename public/{translations => languages}/dashboard/ar/translation.json (100%) rename public/{translations => languages}/dashboard/de/translation.json (100%) rename public/{translations => languages}/dashboard/en/translation.json (100%) rename public/{translations => languages}/dashboard/es/translation.json (100%) rename public/{translations => languages}/dashboard/in/translation.json (100%) rename public/{translations => languages}/dashboard/ja/translation.json (100%) rename public/{translations => languages}/dashboard/pt/translation.json (100%) rename public/{translations => languages}/dashboard/ru/translation.json (100%) rename public/{translations => languages}/dashboard/zr/translation.json (100%) rename public/{translations => languages}/patient/ar/translation.json (100%) rename public/{translations => languages}/patient/de/translation.json (100%) rename public/{translations => languages}/patient/en/translation.json (100%) rename public/{translations => languages}/patient/es/translation.json (100%) rename public/{translations => languages}/patient/in/translation.json (100%) rename public/{translations => languages}/patient/ja/translation.json (100%) rename public/{translations => languages}/patient/pt/translation.json (100%) rename public/{translations => languages}/patient/ru/translation.json (100%) rename public/{translations => languages}/patient/zr/translation.json (100%) rename public/{translations => languages}/patients/ar/translation.json (100%) rename public/{translations => languages}/patients/de/translation.json (100%) rename public/{translations => languages}/patients/en/translation.json (100%) rename public/{translations => languages}/patients/es/translation.json (100%) rename public/{translations => languages}/patients/in/translation.json (100%) rename public/{translations => languages}/patients/ja/translation.json (100%) rename public/{translations => languages}/patients/pt/translation.json (100%) rename public/{translations => languages}/patients/ru/translation.json (100%) rename public/{translations => languages}/patients/zr/translation.json (100%) diff --git a/public/translations/actions/ar/translation.json b/public/languages/actions/ar/translation.json similarity index 100% rename from public/translations/actions/ar/translation.json rename to public/languages/actions/ar/translation.json diff --git a/public/translations/actions/de/translation.json b/public/languages/actions/de/translation.json similarity index 100% rename from public/translations/actions/de/translation.json rename to public/languages/actions/de/translation.json diff --git a/public/translations/actions/en/translation.json b/public/languages/actions/en/translation.json similarity index 100% rename from public/translations/actions/en/translation.json rename to public/languages/actions/en/translation.json diff --git a/public/translations/actions/es/translation.json b/public/languages/actions/es/translation.json similarity index 100% rename from public/translations/actions/es/translation.json rename to public/languages/actions/es/translation.json diff --git a/public/translations/actions/in/translation.json b/public/languages/actions/in/translation.json similarity index 100% rename from public/translations/actions/in/translation.json rename to public/languages/actions/in/translation.json diff --git a/public/translations/actions/ja/translation.json b/public/languages/actions/ja/translation.json similarity index 100% rename from public/translations/actions/ja/translation.json rename to public/languages/actions/ja/translation.json diff --git a/public/translations/actions/pt/translation.json b/public/languages/actions/pt/translation.json similarity index 100% rename from public/translations/actions/pt/translation.json rename to public/languages/actions/pt/translation.json diff --git a/public/translations/actions/ru/translation.json b/public/languages/actions/ru/translation.json similarity index 100% rename from public/translations/actions/ru/translation.json rename to public/languages/actions/ru/translation.json diff --git a/public/translations/actions/zr/translation.json b/public/languages/actions/zr/translation.json similarity index 100% rename from public/translations/actions/zr/translation.json rename to public/languages/actions/zr/translation.json diff --git a/public/translations/dashboard/ar/translation.json b/public/languages/dashboard/ar/translation.json similarity index 100% rename from public/translations/dashboard/ar/translation.json rename to public/languages/dashboard/ar/translation.json diff --git a/public/translations/dashboard/de/translation.json b/public/languages/dashboard/de/translation.json similarity index 100% rename from public/translations/dashboard/de/translation.json rename to public/languages/dashboard/de/translation.json diff --git a/public/translations/dashboard/en/translation.json b/public/languages/dashboard/en/translation.json similarity index 100% rename from public/translations/dashboard/en/translation.json rename to public/languages/dashboard/en/translation.json diff --git a/public/translations/dashboard/es/translation.json b/public/languages/dashboard/es/translation.json similarity index 100% rename from public/translations/dashboard/es/translation.json rename to public/languages/dashboard/es/translation.json diff --git a/public/translations/dashboard/in/translation.json b/public/languages/dashboard/in/translation.json similarity index 100% rename from public/translations/dashboard/in/translation.json rename to public/languages/dashboard/in/translation.json diff --git a/public/translations/dashboard/ja/translation.json b/public/languages/dashboard/ja/translation.json similarity index 100% rename from public/translations/dashboard/ja/translation.json rename to public/languages/dashboard/ja/translation.json diff --git a/public/translations/dashboard/pt/translation.json b/public/languages/dashboard/pt/translation.json similarity index 100% rename from public/translations/dashboard/pt/translation.json rename to public/languages/dashboard/pt/translation.json diff --git a/public/translations/dashboard/ru/translation.json b/public/languages/dashboard/ru/translation.json similarity index 100% rename from public/translations/dashboard/ru/translation.json rename to public/languages/dashboard/ru/translation.json diff --git a/public/translations/dashboard/zr/translation.json b/public/languages/dashboard/zr/translation.json similarity index 100% rename from public/translations/dashboard/zr/translation.json rename to public/languages/dashboard/zr/translation.json diff --git a/public/translations/patient/ar/translation.json b/public/languages/patient/ar/translation.json similarity index 100% rename from public/translations/patient/ar/translation.json rename to public/languages/patient/ar/translation.json diff --git a/public/translations/patient/de/translation.json b/public/languages/patient/de/translation.json similarity index 100% rename from public/translations/patient/de/translation.json rename to public/languages/patient/de/translation.json diff --git a/public/translations/patient/en/translation.json b/public/languages/patient/en/translation.json similarity index 100% rename from public/translations/patient/en/translation.json rename to public/languages/patient/en/translation.json diff --git a/public/translations/patient/es/translation.json b/public/languages/patient/es/translation.json similarity index 100% rename from public/translations/patient/es/translation.json rename to public/languages/patient/es/translation.json diff --git a/public/translations/patient/in/translation.json b/public/languages/patient/in/translation.json similarity index 100% rename from public/translations/patient/in/translation.json rename to public/languages/patient/in/translation.json diff --git a/public/translations/patient/ja/translation.json b/public/languages/patient/ja/translation.json similarity index 100% rename from public/translations/patient/ja/translation.json rename to public/languages/patient/ja/translation.json diff --git a/public/translations/patient/pt/translation.json b/public/languages/patient/pt/translation.json similarity index 100% rename from public/translations/patient/pt/translation.json rename to public/languages/patient/pt/translation.json diff --git a/public/translations/patient/ru/translation.json b/public/languages/patient/ru/translation.json similarity index 100% rename from public/translations/patient/ru/translation.json rename to public/languages/patient/ru/translation.json diff --git a/public/translations/patient/zr/translation.json b/public/languages/patient/zr/translation.json similarity index 100% rename from public/translations/patient/zr/translation.json rename to public/languages/patient/zr/translation.json diff --git a/public/translations/patients/ar/translation.json b/public/languages/patients/ar/translation.json similarity index 100% rename from public/translations/patients/ar/translation.json rename to public/languages/patients/ar/translation.json diff --git a/public/translations/patients/de/translation.json b/public/languages/patients/de/translation.json similarity index 100% rename from public/translations/patients/de/translation.json rename to public/languages/patients/de/translation.json diff --git a/public/translations/patients/en/translation.json b/public/languages/patients/en/translation.json similarity index 100% rename from public/translations/patients/en/translation.json rename to public/languages/patients/en/translation.json diff --git a/public/translations/patients/es/translation.json b/public/languages/patients/es/translation.json similarity index 100% rename from public/translations/patients/es/translation.json rename to public/languages/patients/es/translation.json diff --git a/public/translations/patients/in/translation.json b/public/languages/patients/in/translation.json similarity index 100% rename from public/translations/patients/in/translation.json rename to public/languages/patients/in/translation.json diff --git a/public/translations/patients/ja/translation.json b/public/languages/patients/ja/translation.json similarity index 100% rename from public/translations/patients/ja/translation.json rename to public/languages/patients/ja/translation.json diff --git a/public/translations/patients/pt/translation.json b/public/languages/patients/pt/translation.json similarity index 100% rename from public/translations/patients/pt/translation.json rename to public/languages/patients/pt/translation.json diff --git a/public/translations/patients/ru/translation.json b/public/languages/patients/ru/translation.json similarity index 100% rename from public/translations/patients/ru/translation.json rename to public/languages/patients/ru/translation.json diff --git a/public/translations/patients/zr/translation.json b/public/languages/patients/zr/translation.json similarity index 100% rename from public/translations/patients/zr/translation.json rename to public/languages/patients/zr/translation.json From 761deda4a2ea4dd5dbf4bbdacad72fac55cd6f3c Mon Sep 17 00:00:00 2001 From: Bruno Costa Date: Tue, 7 Jan 2020 00:40:20 -0300 Subject: [PATCH 05/11] feat(i18n): reorganize public translation resources re #1668 --- .../actions/ar/translation.json | 0 .../actions/de/translation.json | 0 .../actions/en/translation.json | 0 .../actions/es/translation.json | 0 .../actions/in/translation.json | 0 .../actions/ja/translation.json | 0 .../actions/pt/translation.json | 0 .../actions/ru/translation.json | 0 .../actions/zr/translation.json | 0 .../dashboard/ar/translation.json | 0 .../dashboard/de/translation.json | 0 .../dashboard/en/translation.json | 0 .../dashboard/es/translation.json | 0 .../dashboard/in/translation.json | 0 .../dashboard/ja/translation.json | 0 .../dashboard/pt/translation.json | 0 .../dashboard/ru/translation.json | 0 .../dashboard/zr/translation.json | 0 .../patient/ar/translation.json | 0 .../patient/de/translation.json | 0 .../patient/en/translation.json | 0 .../patient/es/translation.json | 0 .../patient/in/translation.json | 0 .../patient/ja/translation.json | 0 .../patient/pt/translation.json | 0 .../patient/ru/translation.json | 0 .../patient/zr/translation.json | 0 .../patients/ar/translation.json | 0 .../patients/de/translation.json | 0 .../patients/en/translation.json | 0 .../patients/es/translation.json | 0 .../patients/in/translation.json | 0 .../patients/ja/translation.json | 0 .../patients/pt/translation.json | 0 .../patients/ru/translation.json | 0 .../patients/zr/translation.json | 0 src/i18n.js | 21 ++++++++++++++++++- 37 files changed, 20 insertions(+), 1 deletion(-) rename public/{languages => locales}/actions/ar/translation.json (100%) rename public/{languages => locales}/actions/de/translation.json (100%) rename public/{languages => locales}/actions/en/translation.json (100%) rename public/{languages => locales}/actions/es/translation.json (100%) rename public/{languages => locales}/actions/in/translation.json (100%) rename public/{languages => locales}/actions/ja/translation.json (100%) rename public/{languages => locales}/actions/pt/translation.json (100%) rename public/{languages => locales}/actions/ru/translation.json (100%) rename public/{languages => locales}/actions/zr/translation.json (100%) rename public/{languages => locales}/dashboard/ar/translation.json (100%) rename public/{languages => locales}/dashboard/de/translation.json (100%) rename public/{languages => locales}/dashboard/en/translation.json (100%) rename public/{languages => locales}/dashboard/es/translation.json (100%) rename public/{languages => locales}/dashboard/in/translation.json (100%) rename public/{languages => locales}/dashboard/ja/translation.json (100%) rename public/{languages => locales}/dashboard/pt/translation.json (100%) rename public/{languages => locales}/dashboard/ru/translation.json (100%) rename public/{languages => locales}/dashboard/zr/translation.json (100%) rename public/{languages => locales}/patient/ar/translation.json (100%) rename public/{languages => locales}/patient/de/translation.json (100%) rename public/{languages => locales}/patient/en/translation.json (100%) rename public/{languages => locales}/patient/es/translation.json (100%) rename public/{languages => locales}/patient/in/translation.json (100%) rename public/{languages => locales}/patient/ja/translation.json (100%) rename public/{languages => locales}/patient/pt/translation.json (100%) rename public/{languages => locales}/patient/ru/translation.json (100%) rename public/{languages => locales}/patient/zr/translation.json (100%) rename public/{languages => locales}/patients/ar/translation.json (100%) rename public/{languages => locales}/patients/de/translation.json (100%) rename public/{languages => locales}/patients/en/translation.json (100%) rename public/{languages => locales}/patients/es/translation.json (100%) rename public/{languages => locales}/patients/in/translation.json (100%) rename public/{languages => locales}/patients/ja/translation.json (100%) rename public/{languages => locales}/patients/pt/translation.json (100%) rename public/{languages => locales}/patients/ru/translation.json (100%) rename public/{languages => locales}/patients/zr/translation.json (100%) diff --git a/public/languages/actions/ar/translation.json b/public/locales/actions/ar/translation.json similarity index 100% rename from public/languages/actions/ar/translation.json rename to public/locales/actions/ar/translation.json diff --git a/public/languages/actions/de/translation.json b/public/locales/actions/de/translation.json similarity index 100% rename from public/languages/actions/de/translation.json rename to public/locales/actions/de/translation.json diff --git a/public/languages/actions/en/translation.json b/public/locales/actions/en/translation.json similarity index 100% rename from public/languages/actions/en/translation.json rename to public/locales/actions/en/translation.json diff --git a/public/languages/actions/es/translation.json b/public/locales/actions/es/translation.json similarity index 100% rename from public/languages/actions/es/translation.json rename to public/locales/actions/es/translation.json diff --git a/public/languages/actions/in/translation.json b/public/locales/actions/in/translation.json similarity index 100% rename from public/languages/actions/in/translation.json rename to public/locales/actions/in/translation.json diff --git a/public/languages/actions/ja/translation.json b/public/locales/actions/ja/translation.json similarity index 100% rename from public/languages/actions/ja/translation.json rename to public/locales/actions/ja/translation.json diff --git a/public/languages/actions/pt/translation.json b/public/locales/actions/pt/translation.json similarity index 100% rename from public/languages/actions/pt/translation.json rename to public/locales/actions/pt/translation.json diff --git a/public/languages/actions/ru/translation.json b/public/locales/actions/ru/translation.json similarity index 100% rename from public/languages/actions/ru/translation.json rename to public/locales/actions/ru/translation.json diff --git a/public/languages/actions/zr/translation.json b/public/locales/actions/zr/translation.json similarity index 100% rename from public/languages/actions/zr/translation.json rename to public/locales/actions/zr/translation.json diff --git a/public/languages/dashboard/ar/translation.json b/public/locales/dashboard/ar/translation.json similarity index 100% rename from public/languages/dashboard/ar/translation.json rename to public/locales/dashboard/ar/translation.json diff --git a/public/languages/dashboard/de/translation.json b/public/locales/dashboard/de/translation.json similarity index 100% rename from public/languages/dashboard/de/translation.json rename to public/locales/dashboard/de/translation.json diff --git a/public/languages/dashboard/en/translation.json b/public/locales/dashboard/en/translation.json similarity index 100% rename from public/languages/dashboard/en/translation.json rename to public/locales/dashboard/en/translation.json diff --git a/public/languages/dashboard/es/translation.json b/public/locales/dashboard/es/translation.json similarity index 100% rename from public/languages/dashboard/es/translation.json rename to public/locales/dashboard/es/translation.json diff --git a/public/languages/dashboard/in/translation.json b/public/locales/dashboard/in/translation.json similarity index 100% rename from public/languages/dashboard/in/translation.json rename to public/locales/dashboard/in/translation.json diff --git a/public/languages/dashboard/ja/translation.json b/public/locales/dashboard/ja/translation.json similarity index 100% rename from public/languages/dashboard/ja/translation.json rename to public/locales/dashboard/ja/translation.json diff --git a/public/languages/dashboard/pt/translation.json b/public/locales/dashboard/pt/translation.json similarity index 100% rename from public/languages/dashboard/pt/translation.json rename to public/locales/dashboard/pt/translation.json diff --git a/public/languages/dashboard/ru/translation.json b/public/locales/dashboard/ru/translation.json similarity index 100% rename from public/languages/dashboard/ru/translation.json rename to public/locales/dashboard/ru/translation.json diff --git a/public/languages/dashboard/zr/translation.json b/public/locales/dashboard/zr/translation.json similarity index 100% rename from public/languages/dashboard/zr/translation.json rename to public/locales/dashboard/zr/translation.json diff --git a/public/languages/patient/ar/translation.json b/public/locales/patient/ar/translation.json similarity index 100% rename from public/languages/patient/ar/translation.json rename to public/locales/patient/ar/translation.json diff --git a/public/languages/patient/de/translation.json b/public/locales/patient/de/translation.json similarity index 100% rename from public/languages/patient/de/translation.json rename to public/locales/patient/de/translation.json diff --git a/public/languages/patient/en/translation.json b/public/locales/patient/en/translation.json similarity index 100% rename from public/languages/patient/en/translation.json rename to public/locales/patient/en/translation.json diff --git a/public/languages/patient/es/translation.json b/public/locales/patient/es/translation.json similarity index 100% rename from public/languages/patient/es/translation.json rename to public/locales/patient/es/translation.json diff --git a/public/languages/patient/in/translation.json b/public/locales/patient/in/translation.json similarity index 100% rename from public/languages/patient/in/translation.json rename to public/locales/patient/in/translation.json diff --git a/public/languages/patient/ja/translation.json b/public/locales/patient/ja/translation.json similarity index 100% rename from public/languages/patient/ja/translation.json rename to public/locales/patient/ja/translation.json diff --git a/public/languages/patient/pt/translation.json b/public/locales/patient/pt/translation.json similarity index 100% rename from public/languages/patient/pt/translation.json rename to public/locales/patient/pt/translation.json diff --git a/public/languages/patient/ru/translation.json b/public/locales/patient/ru/translation.json similarity index 100% rename from public/languages/patient/ru/translation.json rename to public/locales/patient/ru/translation.json diff --git a/public/languages/patient/zr/translation.json b/public/locales/patient/zr/translation.json similarity index 100% rename from public/languages/patient/zr/translation.json rename to public/locales/patient/zr/translation.json diff --git a/public/languages/patients/ar/translation.json b/public/locales/patients/ar/translation.json similarity index 100% rename from public/languages/patients/ar/translation.json rename to public/locales/patients/ar/translation.json diff --git a/public/languages/patients/de/translation.json b/public/locales/patients/de/translation.json similarity index 100% rename from public/languages/patients/de/translation.json rename to public/locales/patients/de/translation.json diff --git a/public/languages/patients/en/translation.json b/public/locales/patients/en/translation.json similarity index 100% rename from public/languages/patients/en/translation.json rename to public/locales/patients/en/translation.json diff --git a/public/languages/patients/es/translation.json b/public/locales/patients/es/translation.json similarity index 100% rename from public/languages/patients/es/translation.json rename to public/locales/patients/es/translation.json diff --git a/public/languages/patients/in/translation.json b/public/locales/patients/in/translation.json similarity index 100% rename from public/languages/patients/in/translation.json rename to public/locales/patients/in/translation.json diff --git a/public/languages/patients/ja/translation.json b/public/locales/patients/ja/translation.json similarity index 100% rename from public/languages/patients/ja/translation.json rename to public/locales/patients/ja/translation.json diff --git a/public/languages/patients/pt/translation.json b/public/locales/patients/pt/translation.json similarity index 100% rename from public/languages/patients/pt/translation.json rename to public/locales/patients/pt/translation.json diff --git a/public/languages/patients/ru/translation.json b/public/locales/patients/ru/translation.json similarity index 100% rename from public/languages/patients/ru/translation.json rename to public/locales/patients/ru/translation.json diff --git a/public/languages/patients/zr/translation.json b/public/locales/patients/zr/translation.json similarity index 100% rename from public/languages/patients/zr/translation.json rename to public/locales/patients/zr/translation.json diff --git a/src/i18n.js b/src/i18n.js index 31835373b1..ee02f75eb2 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -3,8 +3,9 @@ import Backend from 'i18next-xhr-backend' import LanguageDetector from 'i18next-browser-languagedetector' import { initReactI18next } from 'react-i18next' +import * as en from './example.json'; i18n - // load translation using xhr -> see /public/app-sections/languages + // load translation using xhr -> see /public/languages // learn more: https://github.com/i18next/i18next-xhr-backend .use(Backend) // detect user language @@ -15,6 +16,24 @@ i18n // init i18next // for all options read: https://www.i18next.com/overview/configuration-options .init({ + // we init with resources + resources: { + en: { + translations: { + "To get started, edit <1>src/App.js and save to reload.": + "To get started, edit <1>src/App.js and save to reload.", + "Welcome to React": "Welcome to React and react-i18next", + welcome: "Hello
World" + } + }, + de: { + translations: { + "To get started, edit <1>src/App.js and save to reload.": + "Starte in dem du, <1>src/App.js editierst und speicherst.", + "Welcome to React": "Willkommen bei React und react-i18next" + } + } + }, fallbackLng: 'en', debug: true, From 98c25b99c9bdc16078ee6552925a2c183a511c6f Mon Sep 17 00:00:00 2001 From: Bruno Costa Date: Tue, 7 Jan 2020 03:09:08 -0300 Subject: [PATCH 06/11] fix(i18n): fix file type and import fix #1668 --- src/i18n.js | 45 --------------------------------------------- src/i18n.tsx | 26 ++++++++++++++++++++++++++ src/index.tsx | 2 +- 3 files changed, 27 insertions(+), 46 deletions(-) delete mode 100644 src/i18n.js create mode 100644 src/i18n.tsx diff --git a/src/i18n.js b/src/i18n.js deleted file mode 100644 index ee02f75eb2..0000000000 --- a/src/i18n.js +++ /dev/null @@ -1,45 +0,0 @@ -import i18n from 'i18next' -import Backend from 'i18next-xhr-backend' -import LanguageDetector from 'i18next-browser-languagedetector' -import { initReactI18next } from 'react-i18next' - -import * as en from './example.json'; -i18n - // load translation using xhr -> see /public/languages - // learn more: https://github.com/i18next/i18next-xhr-backend - .use(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({ - // we init with resources - resources: { - en: { - translations: { - "To get started, edit <1>src/App.js and save to reload.": - "To get started, edit <1>src/App.js and save to reload.", - "Welcome to React": "Welcome to React and react-i18next", - welcome: "Hello
World" - } - }, - de: { - translations: { - "To get started, edit <1>src/App.js and save to reload.": - "Starte in dem du, <1>src/App.js editierst und speicherst.", - "Welcome to React": "Willkommen bei React und react-i18next" - } - } - }, - fallbackLng: 'en', - debug: true, - - interpolation: { - escapeValue: false, // not needed for react as it escapes by default - }, - }) - -export default i18n diff --git a/src/i18n.tsx b/src/i18n.tsx new file mode 100644 index 0000000000..d73fdac9b1 --- /dev/null +++ b/src/i18n.tsx @@ -0,0 +1,26 @@ +import i18n from 'i18next'; +import Backend from 'i18next-xhr-backend'; +import LanguageDetector from 'i18next-browser-languagedetector'; +import { initReactI18next } from 'react-i18next'; + +i18n + // load translation using xhr -> see /public/locales + // learn more: https://github.com/i18next/i18next-xhr-backend + .use(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, + + interpolation: { + escapeValue: false, // not needed for react as it escapes by default + }, + }); + +export default i18n; diff --git a/src/index.tsx b/src/index.tsx index 003742a69b..eaa56436ec 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4,7 +4,7 @@ import 'bootstrap/dist/css/bootstrap.min.css' import './index.css' import App from './App' import * as serviceWorker from './serviceWorker' -import './i18n' +import './i18n.tsx' ReactDOM.render(, document.getElementById('root')) From 6e7053395aace55d99f9460c406eb97763f66d4f Mon Sep 17 00:00:00 2001 From: Matteo Vivona Date: Fri, 10 Jan 2020 09:30:23 +0100 Subject: [PATCH 07/11] updates components --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 436a5c38b2..870fcd9da3 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "private": false, "license": "MIT", "dependencies": { - "@hospitalrun/components": "^0.20.0", + "@hospitalrun/components": "^0.28.0", "@reduxjs/toolkit": "~1.1.0", "@semantic-release/changelog": "~3.0.4", "@semantic-release/git": "~7.0.16", From 59680a054baea29c1d99e9a5c9c4ab0d3e246b5b Mon Sep 17 00:00:00 2001 From: ocBruno Date: Sun, 12 Jan 2020 01:41:10 -0300 Subject: [PATCH 08/11] fix(i18n): fix search button properties fix #1668 --- src/components/Navbar.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index d1c1df8d86..c9c3d65ff3 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -16,8 +16,10 @@ const Navbar = () => { }} bg="dark" variant="dark" - onSearchButtonClick={() => console.log('hello')} - onSearchTextBoxChange={() => console.log('hello')} + search={{ + onClickButton: () => console.log('hello'), + onChangeInput: () => console.log('hello'), + }} navLinks={[ { label: t('patients.label'), From dba51659f51ab8d36ed8a86bdf16d4b8fc60d76b Mon Sep 17 00:00:00 2001 From: ocBruno Date: Sun, 12 Jan 2020 03:23:13 -0300 Subject: [PATCH 09/11] fix(i18n): fix i18n translation keys and reorganize files fix #1668 --- public/locales/actions/ar/translation.json | 7 --- public/locales/actions/de/translation.json | 7 --- public/locales/actions/en/translation.json | 7 --- public/locales/actions/es/translation.json | 7 --- public/locales/actions/in/translation.json | 7 --- public/locales/actions/ja/translation.json | 7 --- public/locales/actions/pt/translation.json | 7 --- public/locales/actions/ru/translation.json | 7 --- public/locales/actions/zr/translation.json | 7 --- public/locales/dashboard/ar/translation.json | 3 -- public/locales/dashboard/de/translation.json | 3 -- public/locales/dashboard/en/translation.json | 3 -- public/locales/dashboard/es/translation.json | 3 -- public/locales/dashboard/in/translation.json | 3 -- public/locales/dashboard/ja/translation.json | 3 -- public/locales/dashboard/pt/translation.json | 3 -- public/locales/dashboard/ru/translation.json | 3 -- public/locales/dashboard/zr/translation.json | 3 -- public/locales/patient/ar/translation.json | 4 -- public/locales/patient/de/translation.json | 4 -- public/locales/patient/en/translation.json | 4 -- public/locales/patient/es/translation.json | 4 -- public/locales/patient/in/translation.json | 4 -- public/locales/patient/ja/translation.json | 4 -- public/locales/patient/pt/translation.json | 4 -- public/locales/patient/ru/translation.json | 4 -- public/locales/patient/zr/translation.json | 4 -- public/locales/patients/ar/translation.json | 6 --- public/locales/patients/de/translation.json | 6 --- public/locales/patients/en/translation.json | 6 --- public/locales/patients/es/translation.json | 6 --- public/locales/patients/in/translation.json | 6 --- public/locales/patients/ja/translation.json | 6 --- public/locales/patients/pt/translation.json | 6 --- public/locales/patients/ru/translation.json | 6 --- public/locales/patients/zr/translation.json | 6 --- src/components/Navbar.tsx | 6 +-- src/components/Sidebar.tsx | 4 +- src/i18n.tsx | 50 ++++++++++++++++++-- src/locales/ar/translation.json | 22 +++++++++ src/locales/de/translation.json | 22 +++++++++ src/locales/en/translation.json | 22 +++++++++ src/locales/es/translation.json | 22 +++++++++ src/locales/in/translation.json | 22 +++++++++ src/locales/ja/translation.json | 22 +++++++++ src/locales/pt/translation.json | 22 +++++++++ src/locales/ru/translation.json | 23 +++++++++ src/locales/zr/translation.json | 22 +++++++++ 48 files changed, 251 insertions(+), 188 deletions(-) delete mode 100644 public/locales/actions/ar/translation.json delete mode 100644 public/locales/actions/de/translation.json delete mode 100644 public/locales/actions/en/translation.json delete mode 100644 public/locales/actions/es/translation.json delete mode 100644 public/locales/actions/in/translation.json delete mode 100644 public/locales/actions/ja/translation.json delete mode 100644 public/locales/actions/pt/translation.json delete mode 100644 public/locales/actions/ru/translation.json delete mode 100644 public/locales/actions/zr/translation.json delete mode 100644 public/locales/dashboard/ar/translation.json delete mode 100644 public/locales/dashboard/de/translation.json delete mode 100644 public/locales/dashboard/en/translation.json delete mode 100644 public/locales/dashboard/es/translation.json delete mode 100644 public/locales/dashboard/in/translation.json delete mode 100644 public/locales/dashboard/ja/translation.json delete mode 100644 public/locales/dashboard/pt/translation.json delete mode 100644 public/locales/dashboard/ru/translation.json delete mode 100644 public/locales/dashboard/zr/translation.json delete mode 100644 public/locales/patient/ar/translation.json delete mode 100644 public/locales/patient/de/translation.json delete mode 100644 public/locales/patient/en/translation.json delete mode 100644 public/locales/patient/es/translation.json delete mode 100644 public/locales/patient/in/translation.json delete mode 100644 public/locales/patient/ja/translation.json delete mode 100644 public/locales/patient/pt/translation.json delete mode 100644 public/locales/patient/ru/translation.json delete mode 100644 public/locales/patient/zr/translation.json delete mode 100644 public/locales/patients/ar/translation.json delete mode 100644 public/locales/patients/de/translation.json delete mode 100644 public/locales/patients/en/translation.json delete mode 100644 public/locales/patients/es/translation.json delete mode 100644 public/locales/patients/in/translation.json delete mode 100644 public/locales/patients/ja/translation.json delete mode 100644 public/locales/patients/pt/translation.json delete mode 100644 public/locales/patients/ru/translation.json delete mode 100644 public/locales/patients/zr/translation.json create mode 100644 src/locales/ar/translation.json create mode 100644 src/locales/de/translation.json create mode 100644 src/locales/en/translation.json create mode 100644 src/locales/es/translation.json create mode 100644 src/locales/in/translation.json create mode 100644 src/locales/ja/translation.json create mode 100644 src/locales/pt/translation.json create mode 100644 src/locales/ru/translation.json create mode 100644 src/locales/zr/translation.json diff --git a/public/locales/actions/ar/translation.json b/public/locales/actions/ar/translation.json deleted file mode 100644 index e5bcee862f..0000000000 --- a/public/locales/actions/ar/translation.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "edit": "تصحيح", - "save": "حفظ", - "cancel": "إلغاء", - "new": "الجديد", - "list": "قائمة" -} diff --git a/public/locales/actions/de/translation.json b/public/locales/actions/de/translation.json deleted file mode 100644 index 7a819ff973..0000000000 --- a/public/locales/actions/de/translation.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "edit": "Bearbeiten", - "save": "speichern", - "cancel": "Stornieren", - "new": "Neu", - "list": "Liste" -} diff --git a/public/locales/actions/en/translation.json b/public/locales/actions/en/translation.json deleted file mode 100644 index fcc7553ea9..0000000000 --- a/public/locales/actions/en/translation.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "edit": "Edit", - "save": "Save", - "cancel": "Cancel", - "new": "New", - "list": "List" -} diff --git a/public/locales/actions/es/translation.json b/public/locales/actions/es/translation.json deleted file mode 100644 index 633664e99e..0000000000 --- a/public/locales/actions/es/translation.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "edit": "Editar", - "save": "Guardar", - "cancel": "Cancelar", - "new": "Nuevo", - "list": "Lista" -} diff --git a/public/locales/actions/in/translation.json b/public/locales/actions/in/translation.json deleted file mode 100644 index 586ac04aff..0000000000 --- a/public/locales/actions/in/translation.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "edit": "Edit", - "save": "Menyimpan", - "cancel": "Membatalkan", - "new": "Baru", - "list": "Daftar" -} diff --git a/public/locales/actions/ja/translation.json b/public/locales/actions/ja/translation.json deleted file mode 100644 index e41a839268..0000000000 --- a/public/locales/actions/ja/translation.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "edit": "編集", - "save": "セーブ", - "cancel": "キャンセル", - "new": "新しい", - "list": "リスト" -} diff --git a/public/locales/actions/pt/translation.json b/public/locales/actions/pt/translation.json deleted file mode 100644 index 56eeb99314..0000000000 --- a/public/locales/actions/pt/translation.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "edit": "Editar", - "save": "Salvar", - "cancel": "Cancelar", - "new": "Novo", - "list": "Lista" -} diff --git a/public/locales/actions/ru/translation.json b/public/locales/actions/ru/translation.json deleted file mode 100644 index 94591a0714..0000000000 --- a/public/locales/actions/ru/translation.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "edit": "редактировать", - "save": "Сохранить", - "cancel": "Отмена", - "new": "новый", - "list": "Список" -} diff --git a/public/locales/actions/zr/translation.json b/public/locales/actions/zr/translation.json deleted file mode 100644 index 3ada546c5a..0000000000 --- a/public/locales/actions/zr/translation.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "edit": "编辑", - "save": "保存", - "cancel": "取消", - "new": "新", - "list": "清单" -} diff --git a/public/locales/dashboard/ar/translation.json b/public/locales/dashboard/ar/translation.json deleted file mode 100644 index af1ee256fa..0000000000 --- a/public/locales/dashboard/ar/translation.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "label": "لوحة القيادة" -} diff --git a/public/locales/dashboard/de/translation.json b/public/locales/dashboard/de/translation.json deleted file mode 100644 index 2a566bebe7..0000000000 --- a/public/locales/dashboard/de/translation.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "label": "Dashboard" -} diff --git a/public/locales/dashboard/en/translation.json b/public/locales/dashboard/en/translation.json deleted file mode 100644 index 2a566bebe7..0000000000 --- a/public/locales/dashboard/en/translation.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "label": "Dashboard" -} diff --git a/public/locales/dashboard/es/translation.json b/public/locales/dashboard/es/translation.json deleted file mode 100644 index 74b19e9afd..0000000000 --- a/public/locales/dashboard/es/translation.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "label": "Panel" -} diff --git a/public/locales/dashboard/in/translation.json b/public/locales/dashboard/in/translation.json deleted file mode 100644 index 87c249706c..0000000000 --- a/public/locales/dashboard/in/translation.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "label": "Dasbor" -} diff --git a/public/locales/dashboard/ja/translation.json b/public/locales/dashboard/ja/translation.json deleted file mode 100644 index e26d8ee732..0000000000 --- a/public/locales/dashboard/ja/translation.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "label": "ダッシュボード" -} diff --git a/public/locales/dashboard/pt/translation.json b/public/locales/dashboard/pt/translation.json deleted file mode 100644 index 5edfd74ff1..0000000000 --- a/public/locales/dashboard/pt/translation.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "label": "Painel de controle" -} diff --git a/public/locales/dashboard/ru/translation.json b/public/locales/dashboard/ru/translation.json deleted file mode 100644 index 1c32f6ae61..0000000000 --- a/public/locales/dashboard/ru/translation.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "label": "Панель приборов" -} diff --git a/public/locales/dashboard/zr/translation.json b/public/locales/dashboard/zr/translation.json deleted file mode 100644 index 1795b4304a..0000000000 --- a/public/locales/dashboard/zr/translation.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "label": "仪表板" -} diff --git a/public/locales/patient/ar/translation.json b/public/locales/patient/ar/translation.json deleted file mode 100644 index 33b8f58fd2..0000000000 --- a/public/locales/patient/ar/translation.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "firstName": "الاسم الاول", - "lastName": "الكنية" -} diff --git a/public/locales/patient/de/translation.json b/public/locales/patient/de/translation.json deleted file mode 100644 index 1858fa6833..0000000000 --- a/public/locales/patient/de/translation.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "firstName": "Vorname", - "lastName": "Nachname" -} diff --git a/public/locales/patient/en/translation.json b/public/locales/patient/en/translation.json deleted file mode 100644 index 6f283a5744..0000000000 --- a/public/locales/patient/en/translation.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "firstName": "First Name", - "lastName": "Last Name" -} diff --git a/public/locales/patient/es/translation.json b/public/locales/patient/es/translation.json deleted file mode 100644 index b7bb3e6700..0000000000 --- a/public/locales/patient/es/translation.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "firstName": "Nombre de pila", - "lastName": "Apellido" -} diff --git a/public/locales/patient/in/translation.json b/public/locales/patient/in/translation.json deleted file mode 100644 index b89af63dc6..0000000000 --- a/public/locales/patient/in/translation.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "firstName": "Nama depan", - "lastName": "Nama keluarga" -} diff --git a/public/locales/patient/ja/translation.json b/public/locales/patient/ja/translation.json deleted file mode 100644 index d94fc8c0e8..0000000000 --- a/public/locales/patient/ja/translation.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "firstName": "ファーストネーム", - "lastName": "苗字" -} diff --git a/public/locales/patient/pt/translation.json b/public/locales/patient/pt/translation.json deleted file mode 100644 index dfeb7b7e13..0000000000 --- a/public/locales/patient/pt/translation.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "firstName": "Primeiro nome", - "lastName": "Último nome" -} diff --git a/public/locales/patient/ru/translation.json b/public/locales/patient/ru/translation.json deleted file mode 100644 index 26c13923dc..0000000000 --- a/public/locales/patient/ru/translation.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "firstName": "Имя", - "lastName": "Фамилия" -} diff --git a/public/locales/patient/zr/translation.json b/public/locales/patient/zr/translation.json deleted file mode 100644 index 8b66532a55..0000000000 --- a/public/locales/patient/zr/translation.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "firstName": "名字", - "lastName": "姓" -} diff --git a/public/locales/patients/ar/translation.json b/public/locales/patients/ar/translation.json deleted file mode 100644 index 7dd89820c8..0000000000 --- a/public/locales/patients/ar/translation.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "label": "المرضى", - "viewPatients": "عرض المرضى", - "viewPatient": "عرض المريض", - "newPatient": "مريض جديد" -} diff --git a/public/locales/patients/de/translation.json b/public/locales/patients/de/translation.json deleted file mode 100644 index 62c68da4c1..0000000000 --- a/public/locales/patients/de/translation.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "label": "Patienten", - "viewPatients": "Patienten anzeigen", - "viewPatient": "Patient anzeigen", - "newPatient": "Neuer Patient" -} diff --git a/public/locales/patients/en/translation.json b/public/locales/patients/en/translation.json deleted file mode 100644 index c9463a6cdc..0000000000 --- a/public/locales/patients/en/translation.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "label": "Patients", - "viewPatients": "View Patients", - "viewPatient": "View Patient", - "newPatient": "New Patient" -} diff --git a/public/locales/patients/es/translation.json b/public/locales/patients/es/translation.json deleted file mode 100644 index 8cbb4fddce..0000000000 --- a/public/locales/patients/es/translation.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "label": "Pacientes", - "viewPatients": "Ver pacientes", - "viewPatient": "Ver pacientes", - "newPatient": "Nuevo paciente" -} diff --git a/public/locales/patients/in/translation.json b/public/locales/patients/in/translation.json deleted file mode 100644 index 55a9d45ccc..0000000000 --- a/public/locales/patients/in/translation.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "label": "Pasien", - "viewPatients": "Lihat Pasien", - "viewPatient": "Lihat Pasien", - "newPatient": "Pasien Baru" -} diff --git a/public/locales/patients/ja/translation.json b/public/locales/patients/ja/translation.json deleted file mode 100644 index 8e4213e99b..0000000000 --- a/public/locales/patients/ja/translation.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "label": "患者さん", - "viewPatients": "患者を見る", - "viewPatient": "患者を見る", - "newPatient": "新しい患者" -} diff --git a/public/locales/patients/pt/translation.json b/public/locales/patients/pt/translation.json deleted file mode 100644 index a5bfb4eb1e..0000000000 --- a/public/locales/patients/pt/translation.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "label": "Pacientes", - "viewPatients": "Exibir pacientes", - "viewPatient": "Ver paciente", - "newPatient": "Novo Paciente" -} diff --git a/public/locales/patients/ru/translation.json b/public/locales/patients/ru/translation.json deleted file mode 100644 index 05362dd37b..0000000000 --- a/public/locales/patients/ru/translation.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "label": "Пациенты", - "viewPatients": "Просмотр пациентов", - "viewPatient": "Просмотр пациента", - "newPatient": "Новый пациент" -} diff --git a/public/locales/patients/zr/translation.json b/public/locales/patients/zr/translation.json deleted file mode 100644 index d843cbfe4c..0000000000 --- a/public/locales/patients/zr/translation.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "label": "耐心", - "viewPatients": "查看患者", - "viewPatient": "查看患者", - "newPatient": "新病人" -} diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index c9c3d65ff3..e2eb081194 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -22,17 +22,17 @@ const Navbar = () => { }} navLinks={[ { - label: t('patients.label'), + label: t('patients.label', 'patients'), onClick: () => {}, children: [ { - label: t('actions.list'), + label: t('actions.list', 'list'), onClick: () => { history.push('/patients') }, }, { - label: t('actions.new'), + label: t('actions.new', 'new'), onClick: () => { history.push('/patients/new') }, diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index e02ae70d38..355b371846 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -12,7 +12,7 @@ const Sidebar = () => {
  • - {t('dashboard.label')} + {t('dashboard.label', 'dashboard')}
  • @@ -21,7 +21,7 @@ const Sidebar = () => { className={`nav-link ${path.pathname.includes('patient') ? ' active' : ''}`} > - {` ${t('patients.label')}`} + {` ${t('patients.label', 'patients')}`}
diff --git a/src/i18n.tsx b/src/i18n.tsx index d73fdac9b1..05d6e0815d 100644 --- a/src/i18n.tsx +++ b/src/i18n.tsx @@ -1,12 +1,56 @@ import i18n from 'i18next'; -import Backend from 'i18next-xhr-backend'; +// import Backend from 'i18next-xhr-backend'; import LanguageDetector from 'i18next-browser-languagedetector'; import { initReactI18next } from 'react-i18next'; +import translationAR from './locales/ar/translation.json'; +import translationDE from './locales/de/translation.json'; +import translationEN from './locales/en/translation.json'; +import translationES from './locales/es/translation.json'; +import translationIN from './locales/in/translation.json'; +import translationJA from './locales/ja/translation.json'; +import translationPT from './locales/pt/translation.json'; +import translationRU from './locales/ru/translation.json'; +import translationZR from './locales/zr/translation.json'; + +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 - .use(Backend) + + // SET UP Backend resource + // .use(Backend) + + // detect user language // learn more: https://github.com/i18next/i18next-browser-languageDetector .use(LanguageDetector) @@ -17,7 +61,7 @@ i18n .init({ fallbackLng: 'en', debug: true, - + resources: resources, interpolation: { escapeValue: false, // not needed for react as it escapes by default }, diff --git a/src/locales/ar/translation.json b/src/locales/ar/translation.json new file mode 100644 index 0000000000..d0cecd67e0 --- /dev/null +++ b/src/locales/ar/translation.json @@ -0,0 +1,22 @@ +{ + "actions": { + "edit": "تصحيح", + "save": "حفظ", + "cancel": "إلغاء", + "new": "الجديد", + "list": "قائمة" + }, + "dashboard": { + "label": "لوحة القيادة" + }, + "patient": { + "firstName": "الاسم الاول", + "lastName": "الكنية" + }, + "patients": { + "label": "المرضى", + "viewPatients": "عرض المرضى", + "viewPatient": "عرض المريض", + "newPatient": "مريض جديد" + } +} diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json new file mode 100644 index 0000000000..cae53d51ef --- /dev/null +++ b/src/locales/de/translation.json @@ -0,0 +1,22 @@ +{ + "actions": { + "edit": "Bearbeiten", + "save": "speichern", + "cancel": "Stornieren", + "new": "Neu", + "list": "Liste" + }, + "dashboard": { + "label": "لوحة القيادة" + }, + "patient": { + "firstName": "Vorname", + "lastName": "Nachname" + }, + "patients": { + "label": "Patienten", + "viewPatients": "Patienten anzeigen", + "viewPatient": "Patient anzeigen", + "newPatient": "Neuer Patient" + } +} diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json new file mode 100644 index 0000000000..932b6f1e11 --- /dev/null +++ b/src/locales/en/translation.json @@ -0,0 +1,22 @@ +{ + "actions": { + "edit": "Edit", + "save": "Save", + "cancel": "Cancel", + "new": "New", + "list": "List" + }, + "dashboard": { + "label": "Dashboard" + }, + "patient": { + "firstName": "First Name", + "lastName": "Last Name" + }, + "patients": { + "label": "Patients", + "viewPatients": "View Patients", + "viewPatient": "View Patient", + "newPatient": "New Patient" + } +} diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json new file mode 100644 index 0000000000..c7d05fb80b --- /dev/null +++ b/src/locales/es/translation.json @@ -0,0 +1,22 @@ +{ + "actions": { + "edit": "Editar", + "save": "Guardar", + "cancel": "Cancelar", + "new": "Nuevo", + "list": "Lista" + }, + "dashboard": { + "label": "Panel" + }, + "patient": { + "firstName": "Nombre de pila", + "lastName": "Apellido" + }, + "patients": { + "label": "Pacientes", + "viewPatients": "Ver pacientes", + "viewPatient": "Ver pacientes", + "newPatient": "Nuevo paciente" + } +} diff --git a/src/locales/in/translation.json b/src/locales/in/translation.json new file mode 100644 index 0000000000..b5c50662ae --- /dev/null +++ b/src/locales/in/translation.json @@ -0,0 +1,22 @@ +{ + "actions": { + "edit": "Edit", + "save": "Menyimpan", + "cancel": "Membatalkan", + "new": "Baru", + "list": "Daftar" + }, + "dashboard": { + "label": "Dasbor" + }, + "patient": { + "firstName": "Nama depan", + "lastName": "Nama keluarga" + }, + "patients": { + "label": "Pasien", + "viewPatients": "Lihat Pasien", + "viewPatient": "Lihat Pasien", + "newPatient": "Pasien Baru" + } +} diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json new file mode 100644 index 0000000000..87506be8ac --- /dev/null +++ b/src/locales/ja/translation.json @@ -0,0 +1,22 @@ +{ + "actions": { + "edit": "編集", + "save": "セーブ", + "cancel": "キャンセル", + "new": "新しい", + "list": "リスト" + }, + "dashboard": { + "label": "ダッシュボード" + }, + "patient": { + "firstName": "ファーストネーム", + "lastName": "苗字" + }, + "patients": { + "label": "患者さん", + "viewPatients": "患者を見る", + "viewPatient": "患者を見る", + "newPatient": "新しい患者" + } +} diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json new file mode 100644 index 0000000000..010c287428 --- /dev/null +++ b/src/locales/pt/translation.json @@ -0,0 +1,22 @@ +{ + "actions": { + "edit": "Editar", + "save": "Salvar", + "cancel": "Cancelar", + "new": "Novo", + "list": "Lista" + }, + "dashboard": { + "label": "Painel de controle" + }, + "patient": { + "firstName": "Primeiro nome", + "lastName": "Último nome" + }, + "patients": { + "label": "Pacientes", + "viewPatients": "Exibir pacientes", + "viewPatient": "Ver paciente", + "newPatient": "Novo Paciente" + } +} diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json new file mode 100644 index 0000000000..3135f6d035 --- /dev/null +++ b/src/locales/ru/translation.json @@ -0,0 +1,23 @@ + +{ + "actions": { + "edit": "редактировать", + "save": "Сохранить", + "cancel": "Отмена", + "new": "новый", + "list": "Список" + }, + "dashboard": { + "label": "Панель приборов" + }, + "patient": { + "firstName": "Имя", + "lastName": "Фамилия" + }, + "patients": { + "label": "Пациенты", + "viewPatients": "Просмотр пациентов", + "viewPatient": "Просмотр пациента", + "newPatient": "Новый пациент" + } +} diff --git a/src/locales/zr/translation.json b/src/locales/zr/translation.json new file mode 100644 index 0000000000..051c16d757 --- /dev/null +++ b/src/locales/zr/translation.json @@ -0,0 +1,22 @@ +{ + "actions": { + "edit": "编辑", + "save": "保存", + "cancel": "取消", + "new": "新", + "list": "清单" + }, + "dashboard": { + "label": "仪表板" + }, + "patient": { + "firstName": "名字", + "lastName": "姓" + }, + "patients": { + "label": "耐心", + "viewPatients": "查看患者", + "viewPatient": "查看患者", + "newPatient": "新病人" + } +} From b4135b8bbe096222b8033bfc414817951034b351 Mon Sep 17 00:00:00 2001 From: ocBruno Date: Thu, 30 Jan 2020 21:09:23 -0300 Subject: [PATCH 10/11] refactor(i18n): reorganize and decouple translation resources fix #1668 --- src/i18n.tsx | 18 +++++++-------- src/locales/ar/translation.json | 22 ------------------ src/locales/ar/translations/actions/index.ts | 9 ++++++++ .../ar/translations/dashboard/index.ts | 5 ++++ src/locales/ar/translations/index.ts | 11 +++++++++ src/locales/ar/translations/patient/index.ts | 6 +++++ src/locales/ar/translations/patients/index.ts | 8 +++++++ src/locales/de/translation.json | 22 ------------------ src/locales/de/translations/actions/index.ts | 9 ++++++++ .../de/translations/dashboard/index.ts | 5 ++++ src/locales/de/translations/index.ts | 11 +++++++++ src/locales/de/translations/patient/index.ts | 6 +++++ src/locales/de/translations/patients/index.ts | 8 +++++++ src/locales/en/translation.json | 22 ------------------ src/locales/en/translations/actions/index.ts | 9 ++++++++ .../en/translations/dashboard/index.ts | 5 ++++ src/locales/en/translations/index.ts | 11 +++++++++ src/locales/en/translations/patient/index.ts | 6 +++++ src/locales/en/translations/patients/index.ts | 8 +++++++ src/locales/es/translation.json | 22 ------------------ src/locales/es/translations/actions/index.ts | 9 ++++++++ .../es/translations/dashboard/index.ts | 5 ++++ src/locales/es/translations/index.ts | 11 +++++++++ src/locales/es/translations/patient/index.ts | 6 +++++ src/locales/es/translations/patients/index.ts | 8 +++++++ src/locales/in/translation.json | 22 ------------------ src/locales/in/translations/actions/index.ts | 9 ++++++++ .../in/translations/dashboard/index.ts | 5 ++++ src/locales/in/translations/index.ts | 11 +++++++++ src/locales/in/translations/patient/index.ts | 6 +++++ src/locales/in/translations/patients/index.ts | 8 +++++++ src/locales/ja/translation.json | 22 ------------------ src/locales/ja/translations/actions/index.ts | 9 ++++++++ .../ja/translations/dashboard/index.ts | 5 ++++ src/locales/ja/translations/index.ts | 11 +++++++++ src/locales/ja/translations/patient/index.ts | 6 +++++ src/locales/ja/translations/patients/index.ts | 8 +++++++ src/locales/pt/translation.json | 22 ------------------ src/locales/pt/translations/actions/index.ts | 9 ++++++++ .../pt/translations/dashboard/index.ts | 5 ++++ src/locales/pt/translations/index.ts | 11 +++++++++ src/locales/pt/translations/patient/index.ts | 6 +++++ src/locales/pt/translations/patients/index.ts | 8 +++++++ src/locales/ru/translation.json | 23 ------------------- src/locales/ru/translations/actions/index.ts | 9 ++++++++ .../ru/translations/dashboard/index.ts | 5 ++++ src/locales/ru/translations/index.ts | 11 +++++++++ src/locales/ru/translations/patient/index.ts | 6 +++++ src/locales/ru/translations/patients/index.ts | 8 +++++++ src/locales/zr/translation.json | 22 ------------------ src/locales/zr/translations/actions/index.ts | 9 ++++++++ .../zr/translations/dashboard/index.ts | 5 ++++ src/locales/zr/translations/index.ts | 11 +++++++++ src/locales/zr/translations/patient/index.ts | 6 +++++ src/locales/zr/translations/patients/index.ts | 8 +++++++ 55 files changed, 360 insertions(+), 208 deletions(-) delete mode 100644 src/locales/ar/translation.json create mode 100644 src/locales/ar/translations/actions/index.ts create mode 100644 src/locales/ar/translations/dashboard/index.ts create mode 100644 src/locales/ar/translations/index.ts create mode 100644 src/locales/ar/translations/patient/index.ts create mode 100644 src/locales/ar/translations/patients/index.ts delete mode 100644 src/locales/de/translation.json create mode 100644 src/locales/de/translations/actions/index.ts create mode 100644 src/locales/de/translations/dashboard/index.ts create mode 100644 src/locales/de/translations/index.ts create mode 100644 src/locales/de/translations/patient/index.ts create mode 100644 src/locales/de/translations/patients/index.ts delete mode 100644 src/locales/en/translation.json create mode 100644 src/locales/en/translations/actions/index.ts create mode 100644 src/locales/en/translations/dashboard/index.ts create mode 100644 src/locales/en/translations/index.ts create mode 100644 src/locales/en/translations/patient/index.ts create mode 100644 src/locales/en/translations/patients/index.ts delete mode 100644 src/locales/es/translation.json create mode 100644 src/locales/es/translations/actions/index.ts create mode 100644 src/locales/es/translations/dashboard/index.ts create mode 100644 src/locales/es/translations/index.ts create mode 100644 src/locales/es/translations/patient/index.ts create mode 100644 src/locales/es/translations/patients/index.ts delete mode 100644 src/locales/in/translation.json create mode 100644 src/locales/in/translations/actions/index.ts create mode 100644 src/locales/in/translations/dashboard/index.ts create mode 100644 src/locales/in/translations/index.ts create mode 100644 src/locales/in/translations/patient/index.ts create mode 100644 src/locales/in/translations/patients/index.ts delete mode 100644 src/locales/ja/translation.json create mode 100644 src/locales/ja/translations/actions/index.ts create mode 100644 src/locales/ja/translations/dashboard/index.ts create mode 100644 src/locales/ja/translations/index.ts create mode 100644 src/locales/ja/translations/patient/index.ts create mode 100644 src/locales/ja/translations/patients/index.ts delete mode 100644 src/locales/pt/translation.json create mode 100644 src/locales/pt/translations/actions/index.ts create mode 100644 src/locales/pt/translations/dashboard/index.ts create mode 100644 src/locales/pt/translations/index.ts create mode 100644 src/locales/pt/translations/patient/index.ts create mode 100644 src/locales/pt/translations/patients/index.ts delete mode 100644 src/locales/ru/translation.json create mode 100644 src/locales/ru/translations/actions/index.ts create mode 100644 src/locales/ru/translations/dashboard/index.ts create mode 100644 src/locales/ru/translations/index.ts create mode 100644 src/locales/ru/translations/patient/index.ts create mode 100644 src/locales/ru/translations/patients/index.ts delete mode 100644 src/locales/zr/translation.json create mode 100644 src/locales/zr/translations/actions/index.ts create mode 100644 src/locales/zr/translations/dashboard/index.ts create mode 100644 src/locales/zr/translations/index.ts create mode 100644 src/locales/zr/translations/patient/index.ts create mode 100644 src/locales/zr/translations/patients/index.ts diff --git a/src/i18n.tsx b/src/i18n.tsx index 05d6e0815d..704d11c8f8 100644 --- a/src/i18n.tsx +++ b/src/i18n.tsx @@ -3,15 +3,15 @@ import i18n from 'i18next'; import LanguageDetector from 'i18next-browser-languagedetector'; import { initReactI18next } from 'react-i18next'; -import translationAR from './locales/ar/translation.json'; -import translationDE from './locales/de/translation.json'; -import translationEN from './locales/en/translation.json'; -import translationES from './locales/es/translation.json'; -import translationIN from './locales/in/translation.json'; -import translationJA from './locales/ja/translation.json'; -import translationPT from './locales/pt/translation.json'; -import translationRU from './locales/ru/translation.json'; -import translationZR from './locales/zr/translation.json'; +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: { diff --git a/src/locales/ar/translation.json b/src/locales/ar/translation.json deleted file mode 100644 index d0cecd67e0..0000000000 --- a/src/locales/ar/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "actions": { - "edit": "تصحيح", - "save": "حفظ", - "cancel": "إلغاء", - "new": "الجديد", - "list": "قائمة" - }, - "dashboard": { - "label": "لوحة القيادة" - }, - "patient": { - "firstName": "الاسم الاول", - "lastName": "الكنية" - }, - "patients": { - "label": "المرضى", - "viewPatients": "عرض المرضى", - "viewPatient": "عرض المريض", - "newPatient": "مريض جديد" - } -} diff --git a/src/locales/ar/translations/actions/index.ts b/src/locales/ar/translations/actions/index.ts new file mode 100644 index 0000000000..24196b8408 --- /dev/null +++ b/src/locales/ar/translations/actions/index.ts @@ -0,0 +1,9 @@ +export default { + "actions": { + "edit": "تصحيح", + "save": "حفظ", + "cancel": "إلغاء", + "new": "الجديد", + "list": "قائمة" + } +} diff --git a/src/locales/ar/translations/dashboard/index.ts b/src/locales/ar/translations/dashboard/index.ts new file mode 100644 index 0000000000..bfff30a0b0 --- /dev/null +++ b/src/locales/ar/translations/dashboard/index.ts @@ -0,0 +1,5 @@ +export default { + "dashboard": { + "label": "لوحة القيادة" + } +} diff --git a/src/locales/ar/translations/index.ts b/src/locales/ar/translations/index.ts new file mode 100644 index 0000000000..068c48304a --- /dev/null +++ b/src/locales/ar/translations/index.ts @@ -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, +} diff --git a/src/locales/ar/translations/patient/index.ts b/src/locales/ar/translations/patient/index.ts new file mode 100644 index 0000000000..2a38b86ade --- /dev/null +++ b/src/locales/ar/translations/patient/index.ts @@ -0,0 +1,6 @@ +export default { + "patient": { + "firstName": "الاسم الاول", + "lastName": "الكنية" + } +} diff --git a/src/locales/ar/translations/patients/index.ts b/src/locales/ar/translations/patients/index.ts new file mode 100644 index 0000000000..fa271ed9d8 --- /dev/null +++ b/src/locales/ar/translations/patients/index.ts @@ -0,0 +1,8 @@ +export default { + "patients": { + "label": "المرضى", + "viewPatients": "عرض المرضى", + "viewPatient": "عرض المريض", + "newPatient": "مريض جديد" + } +} diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json deleted file mode 100644 index cae53d51ef..0000000000 --- a/src/locales/de/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "actions": { - "edit": "Bearbeiten", - "save": "speichern", - "cancel": "Stornieren", - "new": "Neu", - "list": "Liste" - }, - "dashboard": { - "label": "لوحة القيادة" - }, - "patient": { - "firstName": "Vorname", - "lastName": "Nachname" - }, - "patients": { - "label": "Patienten", - "viewPatients": "Patienten anzeigen", - "viewPatient": "Patient anzeigen", - "newPatient": "Neuer Patient" - } -} diff --git a/src/locales/de/translations/actions/index.ts b/src/locales/de/translations/actions/index.ts new file mode 100644 index 0000000000..bae1e424ed --- /dev/null +++ b/src/locales/de/translations/actions/index.ts @@ -0,0 +1,9 @@ +export default { + "actions": { + "edit": "Bearbeiten", + "save": "speichern", + "cancel": "Stornieren", + "new": "Neu", + "list": "Liste" + } +} diff --git a/src/locales/de/translations/dashboard/index.ts b/src/locales/de/translations/dashboard/index.ts new file mode 100644 index 0000000000..357fc0c1e5 --- /dev/null +++ b/src/locales/de/translations/dashboard/index.ts @@ -0,0 +1,5 @@ +export default { + "dashboard": { + "label": "Instrumententafel" + } +} diff --git a/src/locales/de/translations/index.ts b/src/locales/de/translations/index.ts new file mode 100644 index 0000000000..068c48304a --- /dev/null +++ b/src/locales/de/translations/index.ts @@ -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, +} diff --git a/src/locales/de/translations/patient/index.ts b/src/locales/de/translations/patient/index.ts new file mode 100644 index 0000000000..4a6cd51143 --- /dev/null +++ b/src/locales/de/translations/patient/index.ts @@ -0,0 +1,6 @@ +export default { + "patient": { + "firstName": "Vorname", + "lastName": "Nachname" + } +} diff --git a/src/locales/de/translations/patients/index.ts b/src/locales/de/translations/patients/index.ts new file mode 100644 index 0000000000..3e92cb58d5 --- /dev/null +++ b/src/locales/de/translations/patients/index.ts @@ -0,0 +1,8 @@ +export default { + "patients": { + "label": "Patienten", + "viewPatients": "Patienten anzeigen", + "viewPatient": "Patient anzeigen", + "newPatient": "Neuer Patient" + } +} diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json deleted file mode 100644 index 932b6f1e11..0000000000 --- a/src/locales/en/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "actions": { - "edit": "Edit", - "save": "Save", - "cancel": "Cancel", - "new": "New", - "list": "List" - }, - "dashboard": { - "label": "Dashboard" - }, - "patient": { - "firstName": "First Name", - "lastName": "Last Name" - }, - "patients": { - "label": "Patients", - "viewPatients": "View Patients", - "viewPatient": "View Patient", - "newPatient": "New Patient" - } -} diff --git a/src/locales/en/translations/actions/index.ts b/src/locales/en/translations/actions/index.ts new file mode 100644 index 0000000000..e7d3161d3a --- /dev/null +++ b/src/locales/en/translations/actions/index.ts @@ -0,0 +1,9 @@ +export default { + "actions": { + "edit": "Edit", + "save": "Save", + "cancel": "Cancel", + "new": "New", + "list": "List" + } +} diff --git a/src/locales/en/translations/dashboard/index.ts b/src/locales/en/translations/dashboard/index.ts new file mode 100644 index 0000000000..0d19bd0e85 --- /dev/null +++ b/src/locales/en/translations/dashboard/index.ts @@ -0,0 +1,5 @@ +export default { + "dashboard": { + "label": "Dashboard" + } +} diff --git a/src/locales/en/translations/index.ts b/src/locales/en/translations/index.ts new file mode 100644 index 0000000000..068c48304a --- /dev/null +++ b/src/locales/en/translations/index.ts @@ -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, +} diff --git a/src/locales/en/translations/patient/index.ts b/src/locales/en/translations/patient/index.ts new file mode 100644 index 0000000000..f7d48e6998 --- /dev/null +++ b/src/locales/en/translations/patient/index.ts @@ -0,0 +1,6 @@ +export default { + "patient": { + "firstName": "First Name", + "lastName": "Last Name" + } +} diff --git a/src/locales/en/translations/patients/index.ts b/src/locales/en/translations/patients/index.ts new file mode 100644 index 0000000000..59a4314839 --- /dev/null +++ b/src/locales/en/translations/patients/index.ts @@ -0,0 +1,8 @@ +export default { + "patients": { + "label": "Patients", + "viewPatients": "View Patients", + "viewPatient": "View Patient", + "newPatient": "New Patient" + } +} diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json deleted file mode 100644 index c7d05fb80b..0000000000 --- a/src/locales/es/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "actions": { - "edit": "Editar", - "save": "Guardar", - "cancel": "Cancelar", - "new": "Nuevo", - "list": "Lista" - }, - "dashboard": { - "label": "Panel" - }, - "patient": { - "firstName": "Nombre de pila", - "lastName": "Apellido" - }, - "patients": { - "label": "Pacientes", - "viewPatients": "Ver pacientes", - "viewPatient": "Ver pacientes", - "newPatient": "Nuevo paciente" - } -} diff --git a/src/locales/es/translations/actions/index.ts b/src/locales/es/translations/actions/index.ts new file mode 100644 index 0000000000..44676e9c8e --- /dev/null +++ b/src/locales/es/translations/actions/index.ts @@ -0,0 +1,9 @@ +export default { + "actions": { + "edit": "Editar", + "save": "Guardar", + "cancel": "Cancelar", + "new": "Nuevo", + "list": "Lista" + } +} diff --git a/src/locales/es/translations/dashboard/index.ts b/src/locales/es/translations/dashboard/index.ts new file mode 100644 index 0000000000..47458257a5 --- /dev/null +++ b/src/locales/es/translations/dashboard/index.ts @@ -0,0 +1,5 @@ +export default { + "dashboard": { + "label": "Panel" + } +} diff --git a/src/locales/es/translations/index.ts b/src/locales/es/translations/index.ts new file mode 100644 index 0000000000..068c48304a --- /dev/null +++ b/src/locales/es/translations/index.ts @@ -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, +} diff --git a/src/locales/es/translations/patient/index.ts b/src/locales/es/translations/patient/index.ts new file mode 100644 index 0000000000..baa4c6e93b --- /dev/null +++ b/src/locales/es/translations/patient/index.ts @@ -0,0 +1,6 @@ +export default { + "patient": { + "firstName": "Nombre de pila", + "lastName": "Apellido" + } +} diff --git a/src/locales/es/translations/patients/index.ts b/src/locales/es/translations/patients/index.ts new file mode 100644 index 0000000000..9c1d7cd784 --- /dev/null +++ b/src/locales/es/translations/patients/index.ts @@ -0,0 +1,8 @@ +export default { + "patients": { + "label": "Pacientes", + "viewPatients": "Ver pacientes", + "viewPatient": "Ver pacientes", + "newPatient": "Nuevo paciente" + } +} diff --git a/src/locales/in/translation.json b/src/locales/in/translation.json deleted file mode 100644 index b5c50662ae..0000000000 --- a/src/locales/in/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "actions": { - "edit": "Edit", - "save": "Menyimpan", - "cancel": "Membatalkan", - "new": "Baru", - "list": "Daftar" - }, - "dashboard": { - "label": "Dasbor" - }, - "patient": { - "firstName": "Nama depan", - "lastName": "Nama keluarga" - }, - "patients": { - "label": "Pasien", - "viewPatients": "Lihat Pasien", - "viewPatient": "Lihat Pasien", - "newPatient": "Pasien Baru" - } -} diff --git a/src/locales/in/translations/actions/index.ts b/src/locales/in/translations/actions/index.ts new file mode 100644 index 0000000000..3aa647caeb --- /dev/null +++ b/src/locales/in/translations/actions/index.ts @@ -0,0 +1,9 @@ +export default { + "actions": { + "edit": "Edit", + "save": "Menyimpan", + "cancel": "Membatalkan", + "new": "Baru", + "list": "Daftar" + } +} diff --git a/src/locales/in/translations/dashboard/index.ts b/src/locales/in/translations/dashboard/index.ts new file mode 100644 index 0000000000..4a74cbf1fa --- /dev/null +++ b/src/locales/in/translations/dashboard/index.ts @@ -0,0 +1,5 @@ +export default { + "dashboard": { + "label": "Dasbor" + } +} diff --git a/src/locales/in/translations/index.ts b/src/locales/in/translations/index.ts new file mode 100644 index 0000000000..068c48304a --- /dev/null +++ b/src/locales/in/translations/index.ts @@ -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, +} diff --git a/src/locales/in/translations/patient/index.ts b/src/locales/in/translations/patient/index.ts new file mode 100644 index 0000000000..c1e856acba --- /dev/null +++ b/src/locales/in/translations/patient/index.ts @@ -0,0 +1,6 @@ +export default { + "patient": { + "firstName": "Nama depan", + "lastName": "Nama keluarga" + } +} diff --git a/src/locales/in/translations/patients/index.ts b/src/locales/in/translations/patients/index.ts new file mode 100644 index 0000000000..1b3c61d89f --- /dev/null +++ b/src/locales/in/translations/patients/index.ts @@ -0,0 +1,8 @@ +export default { + "patients": { + "label": "Pasien", + "viewPatients": "Lihat Pasien", + "viewPatient": "Lihat Pasien", + "newPatient": "Pasien Baru" + } +} diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json deleted file mode 100644 index 87506be8ac..0000000000 --- a/src/locales/ja/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "actions": { - "edit": "編集", - "save": "セーブ", - "cancel": "キャンセル", - "new": "新しい", - "list": "リスト" - }, - "dashboard": { - "label": "ダッシュボード" - }, - "patient": { - "firstName": "ファーストネーム", - "lastName": "苗字" - }, - "patients": { - "label": "患者さん", - "viewPatients": "患者を見る", - "viewPatient": "患者を見る", - "newPatient": "新しい患者" - } -} diff --git a/src/locales/ja/translations/actions/index.ts b/src/locales/ja/translations/actions/index.ts new file mode 100644 index 0000000000..e9083f4d60 --- /dev/null +++ b/src/locales/ja/translations/actions/index.ts @@ -0,0 +1,9 @@ +export default { + "actions": { + "edit": "編集", + "save": "セーブ", + "cancel": "キャンセル", + "new": "新しい", + "list": "リスト" + } +} diff --git a/src/locales/ja/translations/dashboard/index.ts b/src/locales/ja/translations/dashboard/index.ts new file mode 100644 index 0000000000..e4116d4695 --- /dev/null +++ b/src/locales/ja/translations/dashboard/index.ts @@ -0,0 +1,5 @@ +export default { + "dashboard": { + "label": "ダッシュボード" + } +} diff --git a/src/locales/ja/translations/index.ts b/src/locales/ja/translations/index.ts new file mode 100644 index 0000000000..068c48304a --- /dev/null +++ b/src/locales/ja/translations/index.ts @@ -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, +} diff --git a/src/locales/ja/translations/patient/index.ts b/src/locales/ja/translations/patient/index.ts new file mode 100644 index 0000000000..c960028e79 --- /dev/null +++ b/src/locales/ja/translations/patient/index.ts @@ -0,0 +1,6 @@ +export default { + "patient": { + "firstName": "ファーストネーム", + "lastName": "苗字" + } +} diff --git a/src/locales/ja/translations/patients/index.ts b/src/locales/ja/translations/patients/index.ts new file mode 100644 index 0000000000..e76d57c7be --- /dev/null +++ b/src/locales/ja/translations/patients/index.ts @@ -0,0 +1,8 @@ +export default { + "patients": { + "label": "患者さん", + "viewPatients": "患者を見る", + "viewPatient": "患者を見る", + "newPatient": "新しい患者" + } +} diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json deleted file mode 100644 index 010c287428..0000000000 --- a/src/locales/pt/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "actions": { - "edit": "Editar", - "save": "Salvar", - "cancel": "Cancelar", - "new": "Novo", - "list": "Lista" - }, - "dashboard": { - "label": "Painel de controle" - }, - "patient": { - "firstName": "Primeiro nome", - "lastName": "Último nome" - }, - "patients": { - "label": "Pacientes", - "viewPatients": "Exibir pacientes", - "viewPatient": "Ver paciente", - "newPatient": "Novo Paciente" - } -} diff --git a/src/locales/pt/translations/actions/index.ts b/src/locales/pt/translations/actions/index.ts new file mode 100644 index 0000000000..78e0631e66 --- /dev/null +++ b/src/locales/pt/translations/actions/index.ts @@ -0,0 +1,9 @@ +export default { + "actions": { + "edit": "Editar", + "save": "Salvar", + "cancel": "Cancelar", + "new": "Novo", + "list": "Lista" + } +} diff --git a/src/locales/pt/translations/dashboard/index.ts b/src/locales/pt/translations/dashboard/index.ts new file mode 100644 index 0000000000..240f973c1c --- /dev/null +++ b/src/locales/pt/translations/dashboard/index.ts @@ -0,0 +1,5 @@ +export default { + "dashboard": { + "label": "Painel de controle" + } +} diff --git a/src/locales/pt/translations/index.ts b/src/locales/pt/translations/index.ts new file mode 100644 index 0000000000..068c48304a --- /dev/null +++ b/src/locales/pt/translations/index.ts @@ -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, +} diff --git a/src/locales/pt/translations/patient/index.ts b/src/locales/pt/translations/patient/index.ts new file mode 100644 index 0000000000..fedd2ccb45 --- /dev/null +++ b/src/locales/pt/translations/patient/index.ts @@ -0,0 +1,6 @@ +export default { + "patient": { + "firstName": "Primeiro nome", + "lastName": "Último nome" + } +} diff --git a/src/locales/pt/translations/patients/index.ts b/src/locales/pt/translations/patients/index.ts new file mode 100644 index 0000000000..87ea615802 --- /dev/null +++ b/src/locales/pt/translations/patients/index.ts @@ -0,0 +1,8 @@ +export default { + "patients": { + "label": "Pacientes", + "viewPatients": "Exibir pacientes", + "viewPatient": "Ver paciente", + "newPatient": "Novo Paciente" + } +} diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json deleted file mode 100644 index 3135f6d035..0000000000 --- a/src/locales/ru/translation.json +++ /dev/null @@ -1,23 +0,0 @@ - -{ - "actions": { - "edit": "редактировать", - "save": "Сохранить", - "cancel": "Отмена", - "new": "новый", - "list": "Список" - }, - "dashboard": { - "label": "Панель приборов" - }, - "patient": { - "firstName": "Имя", - "lastName": "Фамилия" - }, - "patients": { - "label": "Пациенты", - "viewPatients": "Просмотр пациентов", - "viewPatient": "Просмотр пациента", - "newPatient": "Новый пациент" - } -} diff --git a/src/locales/ru/translations/actions/index.ts b/src/locales/ru/translations/actions/index.ts new file mode 100644 index 0000000000..e2013ca6c6 --- /dev/null +++ b/src/locales/ru/translations/actions/index.ts @@ -0,0 +1,9 @@ +export default { + "actions": { + "edit": "редактировать", + "save": "Сохранить", + "cancel": "Отмена", + "new": "новый", + "list": "Список" + } +} diff --git a/src/locales/ru/translations/dashboard/index.ts b/src/locales/ru/translations/dashboard/index.ts new file mode 100644 index 0000000000..82073fa46c --- /dev/null +++ b/src/locales/ru/translations/dashboard/index.ts @@ -0,0 +1,5 @@ +export default { + "dashboard": { + "label": "Панель приборов" + } +} diff --git a/src/locales/ru/translations/index.ts b/src/locales/ru/translations/index.ts new file mode 100644 index 0000000000..068c48304a --- /dev/null +++ b/src/locales/ru/translations/index.ts @@ -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, +} diff --git a/src/locales/ru/translations/patient/index.ts b/src/locales/ru/translations/patient/index.ts new file mode 100644 index 0000000000..a4f7034c15 --- /dev/null +++ b/src/locales/ru/translations/patient/index.ts @@ -0,0 +1,6 @@ +export default { + "patient": { + "firstName": "Имя", + "lastName": "Фамилия" + } +} diff --git a/src/locales/ru/translations/patients/index.ts b/src/locales/ru/translations/patients/index.ts new file mode 100644 index 0000000000..2c03a06674 --- /dev/null +++ b/src/locales/ru/translations/patients/index.ts @@ -0,0 +1,8 @@ +export default { + "patients": { + "label": "Пациенты", + "viewPatients": "Просмотр пациентов", + "viewPatient": "Просмотр пациента", + "newPatient": "Новый пациент" + } +} diff --git a/src/locales/zr/translation.json b/src/locales/zr/translation.json deleted file mode 100644 index 051c16d757..0000000000 --- a/src/locales/zr/translation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "actions": { - "edit": "编辑", - "save": "保存", - "cancel": "取消", - "new": "新", - "list": "清单" - }, - "dashboard": { - "label": "仪表板" - }, - "patient": { - "firstName": "名字", - "lastName": "姓" - }, - "patients": { - "label": "耐心", - "viewPatients": "查看患者", - "viewPatient": "查看患者", - "newPatient": "新病人" - } -} diff --git a/src/locales/zr/translations/actions/index.ts b/src/locales/zr/translations/actions/index.ts new file mode 100644 index 0000000000..1cd0766cd1 --- /dev/null +++ b/src/locales/zr/translations/actions/index.ts @@ -0,0 +1,9 @@ +export default { + "actions": { + "edit": "编辑", + "save": "保存", + "cancel": "取消", + "new": "新", + "list": "清单" + } +} diff --git a/src/locales/zr/translations/dashboard/index.ts b/src/locales/zr/translations/dashboard/index.ts new file mode 100644 index 0000000000..3196036732 --- /dev/null +++ b/src/locales/zr/translations/dashboard/index.ts @@ -0,0 +1,5 @@ +export default { + "dashboard": { + "label": "仪表板" + } +} diff --git a/src/locales/zr/translations/index.ts b/src/locales/zr/translations/index.ts new file mode 100644 index 0000000000..068c48304a --- /dev/null +++ b/src/locales/zr/translations/index.ts @@ -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, +} diff --git a/src/locales/zr/translations/patient/index.ts b/src/locales/zr/translations/patient/index.ts new file mode 100644 index 0000000000..ddca18b3dd --- /dev/null +++ b/src/locales/zr/translations/patient/index.ts @@ -0,0 +1,6 @@ +export default { + "patient": { + "firstName": "名字", + "lastName": "姓" + } +} diff --git a/src/locales/zr/translations/patients/index.ts b/src/locales/zr/translations/patients/index.ts new file mode 100644 index 0000000000..1fb6acfb59 --- /dev/null +++ b/src/locales/zr/translations/patients/index.ts @@ -0,0 +1,8 @@ +export default { + "patients": { + "label": "耐心", + "viewPatients": "查看患者", + "viewPatient": "查看患者", + "newPatient": "新病人" + } +} From cf305bcad8175d2df9b5a3e1947b27a6fa45a9a7 Mon Sep 17 00:00:00 2001 From: ocBruno Date: Thu, 30 Jan 2020 21:41:54 -0300 Subject: [PATCH 11/11] fix(i18n): fix file type --- src/{i18n.tsx => i18n.ts} | 6 ------ src/index.tsx | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) rename src/{i18n.tsx => i18n.ts} (94%) diff --git a/src/i18n.tsx b/src/i18n.ts similarity index 94% rename from src/i18n.tsx rename to src/i18n.ts index 704d11c8f8..a6d53f248c 100644 --- a/src/i18n.tsx +++ b/src/i18n.ts @@ -1,5 +1,4 @@ import i18n from 'i18next'; -// import Backend from 'i18next-xhr-backend'; import LanguageDetector from 'i18next-browser-languagedetector'; import { initReactI18next } from 'react-i18next'; @@ -46,11 +45,6 @@ const resources = { i18n // load translation using xhr -> see /public/locales // learn more: https://github.com/i18next/i18next-xhr-backend - - // SET UP Backend resource - // .use(Backend) - - // detect user language // learn more: https://github.com/i18next/i18next-browser-languageDetector .use(LanguageDetector) diff --git a/src/index.tsx b/src/index.tsx index eaa56436ec..bca328c084 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4,7 +4,7 @@ import 'bootstrap/dist/css/bootstrap.min.css' import './index.css' import App from './App' import * as serviceWorker from './serviceWorker' -import './i18n.tsx' +import './i18n.ts' ReactDOM.render(, document.getElementById('root'))