diff --git a/src/__tests__/patients/patients-slice.test.ts b/src/__tests__/patients/patients-slice.test.ts index 86d7924680..04dfa4266c 100644 --- a/src/__tests__/patients/patients-slice.test.ts +++ b/src/__tests__/patients/patients-slice.test.ts @@ -133,7 +133,7 @@ describe('patients slice', () => { expect(mockedComponents.Toast).toHaveBeenCalledWith( 'success', 'Success!', - `Successfully created patient ${expectedGivenName} ${expectedFamilyName} ${expectedSuffix}`, + `patients.successfullyCreated ${expectedGivenName} ${expectedFamilyName} ${expectedSuffix}`, ) }) }) diff --git a/src/__tests__/scheduling/appointments-slice.test.ts b/src/__tests__/scheduling/appointments-slice.test.ts index 09410d3e6d..664863d016 100644 --- a/src/__tests__/scheduling/appointments-slice.test.ts +++ b/src/__tests__/scheduling/appointments-slice.test.ts @@ -2,11 +2,11 @@ import { AnyAction } from 'redux' import Appointment from 'model/Appointment' import { createMemoryHistory } from 'history' import AppointmentRepository from 'clients/db/AppointmentsRepository' +import { mocked } from 'ts-jest/utils' import appointments, { createAppointmentStart, createAppointment, } from '../../scheduling/appointments/appointments-slice' -import { mocked } from 'ts-jest/utils' describe('appointments slice', () => { describe('appointments reducer', () => { diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 77cf00a442..28661f6ec4 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -18,13 +18,15 @@ const Navbar = () => { bg="dark" variant="dark" search={{ - onClickButton: () => console.log('hello'), - onChangeInput: () => console.log('hello'), + buttonText: 'actions.search', + placeholderText: 'actions.search', + onClickButton: () => undefined, + onChangeInput: () => undefined, }} navLinks={[ { label: t('patients.label', 'patients'), - onClick: () => {}, + onClick: () => undefined, children: [ { label: t('actions.list', 'list'), @@ -42,9 +44,7 @@ const Navbar = () => { }, { label: t('scheduling.label'), - onClick: () => { - // no oop - }, + onClick: () => undefined, children: [ { label: t('scheduling.appointments.label'), diff --git a/src/i18n.js b/src/i18n.js deleted file mode 100644 index 648c163a6a..0000000000 --- a/src/i18n.js +++ /dev/null @@ -1,30 +0,0 @@ -import i18n from 'i18next' -import LanguageDetector from 'i18next-browser-languagedetector' -import { initReactI18next } from 'react-i18next' - -import translationEN from './locales/en-US/translation' - -const resources = { - en: { - translation: translationEN, - }, -} - -i18n - // detect user language - // learn more: https://github.com/i18next/i18next-browser-languageDetector - .use(LanguageDetector) - // pass the i18n instance to react-i18next. - .use(initReactI18next) - // init i18next - // for all options read: https://www.i18next.com/overview/configuration-options - .init({ - fallbackLng: 'en', - debug: true, - resources, - interpolation: { - escapeValue: false, // not needed for react as it escapes by default - }, - }) - -export default i18n diff --git a/src/i18n.ts b/src/i18n.ts index a6d53f248c..fb7d5f76c9 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -1,16 +1,16 @@ -import i18n from 'i18next'; -import LanguageDetector from 'i18next-browser-languagedetector'; -import { initReactI18next } from 'react-i18next'; +import i18n from 'i18next' +import LanguageDetector from 'i18next-browser-languagedetector' +import { initReactI18next } from 'react-i18next' -import translationAR from './locales/ar/translations'; -import translationDE from './locales/de/translations'; -import translationEN from './locales/en/translations'; -import translationES from './locales/es/translations'; -import translationIN from './locales/in/translations'; -import translationJA from './locales/ja/translations'; -import translationPT from './locales/pt/translations'; -import translationRU from './locales/ru/translations'; -import translationZR from './locales/zr/translations'; +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: { @@ -40,7 +40,7 @@ const resources = { zr: { translation: translationZR, }, -}; +} i18n // load translation using xhr -> see /public/locales @@ -55,10 +55,10 @@ i18n .init({ fallbackLng: 'en', debug: true, - resources: resources, + resources, interpolation: { escapeValue: false, // not needed for react as it escapes by default }, - }); + }) -export default i18n; +export default i18n diff --git a/src/index.tsx b/src/index.tsx index 441abcd322..71b2ba1135 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4,7 +4,7 @@ import '@hospitalrun/components/scss/main.scss' import './index.css' import App from './App' import * as serviceWorker from './serviceWorker' -import './i18n.ts' +import './i18n' ReactDOM.render(, document.getElementById('root')) diff --git a/src/locales/ar/translations/actions/index.ts b/src/locales/ar/translations/actions/index.ts index 24196b8408..3780103bfe 100644 --- a/src/locales/ar/translations/actions/index.ts +++ b/src/locales/ar/translations/actions/index.ts @@ -1,9 +1,9 @@ export default { - "actions": { - "edit": "تصحيح", - "save": "حفظ", - "cancel": "إلغاء", - "new": "الجديد", - "list": "قائمة" - } + actions: { + edit: 'تصحيح', + save: 'حفظ', + cancel: 'إلغاء', + new: 'الجديد', + list: 'قائمة', + }, } diff --git a/src/locales/ar/translations/dashboard/index.ts b/src/locales/ar/translations/dashboard/index.ts index bfff30a0b0..75e1d4d0f7 100644 --- a/src/locales/ar/translations/dashboard/index.ts +++ b/src/locales/ar/translations/dashboard/index.ts @@ -1,5 +1,5 @@ export default { - "dashboard": { - "label": "لوحة القيادة" - } + dashboard: { + label: 'لوحة القيادة', + }, } diff --git a/src/locales/ar/translations/index.ts b/src/locales/ar/translations/index.ts index 068c48304a..e948f4340c 100644 --- a/src/locales/ar/translations/index.ts +++ b/src/locales/ar/translations/index.ts @@ -1,7 +1,7 @@ -import actions from './actions'; -import dashboard from './dashboard'; -import patient from './patient'; -import patients from './patients'; +import actions from './actions' +import dashboard from './dashboard' +import patient from './patient' +import patients from './patients' export default { ...actions, diff --git a/src/locales/ar/translations/patient/index.ts b/src/locales/ar/translations/patient/index.ts index 2a38b86ade..ad53ac665e 100644 --- a/src/locales/ar/translations/patient/index.ts +++ b/src/locales/ar/translations/patient/index.ts @@ -1,6 +1,6 @@ export default { - "patient": { - "firstName": "الاسم الاول", - "lastName": "الكنية" - } + patient: { + firstName: 'الاسم الاول', + lastName: 'الكنية', + }, } diff --git a/src/locales/ar/translations/patients/index.ts b/src/locales/ar/translations/patients/index.ts index fa271ed9d8..5477a71fae 100644 --- a/src/locales/ar/translations/patients/index.ts +++ b/src/locales/ar/translations/patients/index.ts @@ -1,8 +1,8 @@ export default { - "patients": { - "label": "المرضى", - "viewPatients": "عرض المرضى", - "viewPatient": "عرض المريض", - "newPatient": "مريض جديد" - } + patients: { + label: 'المرضى', + viewPatients: 'عرض المرضى', + viewPatient: 'عرض المريض', + newPatient: 'مريض جديد', + }, } diff --git a/src/locales/de/translations/actions/index.ts b/src/locales/de/translations/actions/index.ts index bae1e424ed..36da829341 100644 --- a/src/locales/de/translations/actions/index.ts +++ b/src/locales/de/translations/actions/index.ts @@ -1,9 +1,9 @@ export default { - "actions": { - "edit": "Bearbeiten", - "save": "speichern", - "cancel": "Stornieren", - "new": "Neu", - "list": "Liste" - } + 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 index 357fc0c1e5..984588ceb3 100644 --- a/src/locales/de/translations/dashboard/index.ts +++ b/src/locales/de/translations/dashboard/index.ts @@ -1,5 +1,5 @@ export default { - "dashboard": { - "label": "Instrumententafel" - } + dashboard: { + label: 'Instrumententafel', + }, } diff --git a/src/locales/de/translations/index.ts b/src/locales/de/translations/index.ts index 068c48304a..e948f4340c 100644 --- a/src/locales/de/translations/index.ts +++ b/src/locales/de/translations/index.ts @@ -1,7 +1,7 @@ -import actions from './actions'; -import dashboard from './dashboard'; -import patient from './patient'; -import patients from './patients'; +import actions from './actions' +import dashboard from './dashboard' +import patient from './patient' +import patients from './patients' export default { ...actions, diff --git a/src/locales/de/translations/patient/index.ts b/src/locales/de/translations/patient/index.ts index 4a6cd51143..d1b1df3786 100644 --- a/src/locales/de/translations/patient/index.ts +++ b/src/locales/de/translations/patient/index.ts @@ -1,6 +1,6 @@ export default { - "patient": { - "firstName": "Vorname", - "lastName": "Nachname" - } + patient: { + firstName: 'Vorname', + lastName: 'Nachname', + }, } diff --git a/src/locales/de/translations/patients/index.ts b/src/locales/de/translations/patients/index.ts index 3e92cb58d5..c29fa19da2 100644 --- a/src/locales/de/translations/patients/index.ts +++ b/src/locales/de/translations/patients/index.ts @@ -1,8 +1,8 @@ export default { - "patients": { - "label": "Patienten", - "viewPatients": "Patienten anzeigen", - "viewPatient": "Patient anzeigen", - "newPatient": "Neuer Patient" - } + patients: { + label: 'Patienten', + viewPatients: 'Patienten anzeigen', + viewPatient: 'Patient anzeigen', + newPatient: 'Neuer Patient', + }, } diff --git a/src/locales/en/translations/actions/index.ts b/src/locales/en/translations/actions/index.ts index e7d3161d3a..b1598ec1c9 100644 --- a/src/locales/en/translations/actions/index.ts +++ b/src/locales/en/translations/actions/index.ts @@ -1,9 +1,9 @@ export default { - "actions": { - "edit": "Edit", - "save": "Save", - "cancel": "Cancel", - "new": "New", - "list": "List" - } + 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 index 0d19bd0e85..feaad5f3ee 100644 --- a/src/locales/en/translations/dashboard/index.ts +++ b/src/locales/en/translations/dashboard/index.ts @@ -1,5 +1,5 @@ export default { - "dashboard": { - "label": "Dashboard" - } + dashboard: { + label: 'Dashboard', + }, } diff --git a/src/locales/en/translations/index.ts b/src/locales/en/translations/index.ts index 068c48304a..e948f4340c 100644 --- a/src/locales/en/translations/index.ts +++ b/src/locales/en/translations/index.ts @@ -1,7 +1,7 @@ -import actions from './actions'; -import dashboard from './dashboard'; -import patient from './patient'; -import patients from './patients'; +import actions from './actions' +import dashboard from './dashboard' +import patient from './patient' +import patients from './patients' export default { ...actions, diff --git a/src/locales/en/translations/patient/index.ts b/src/locales/en/translations/patient/index.ts index f7d48e6998..6ebbb21f88 100644 --- a/src/locales/en/translations/patient/index.ts +++ b/src/locales/en/translations/patient/index.ts @@ -1,6 +1,6 @@ export default { - "patient": { - "firstName": "First Name", - "lastName": "Last Name" - } + 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 index 59a4314839..8d64fdc3f9 100644 --- a/src/locales/en/translations/patients/index.ts +++ b/src/locales/en/translations/patients/index.ts @@ -1,8 +1,8 @@ export default { - "patients": { - "label": "Patients", - "viewPatients": "View Patients", - "viewPatient": "View Patient", - "newPatient": "New Patient" - } + patients: { + label: 'Patients', + viewPatients: 'View Patients', + viewPatient: 'View Patient', + newPatient: 'New Patient', + }, } diff --git a/src/locales/es/translations/actions/index.ts b/src/locales/es/translations/actions/index.ts index 44676e9c8e..5c9a3ff1dc 100644 --- a/src/locales/es/translations/actions/index.ts +++ b/src/locales/es/translations/actions/index.ts @@ -1,9 +1,9 @@ export default { - "actions": { - "edit": "Editar", - "save": "Guardar", - "cancel": "Cancelar", - "new": "Nuevo", - "list": "Lista" - } + 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 index 47458257a5..2ef79d6355 100644 --- a/src/locales/es/translations/dashboard/index.ts +++ b/src/locales/es/translations/dashboard/index.ts @@ -1,5 +1,5 @@ export default { - "dashboard": { - "label": "Panel" - } + dashboard: { + label: 'Panel', + }, } diff --git a/src/locales/es/translations/index.ts b/src/locales/es/translations/index.ts index 068c48304a..e948f4340c 100644 --- a/src/locales/es/translations/index.ts +++ b/src/locales/es/translations/index.ts @@ -1,7 +1,7 @@ -import actions from './actions'; -import dashboard from './dashboard'; -import patient from './patient'; -import patients from './patients'; +import actions from './actions' +import dashboard from './dashboard' +import patient from './patient' +import patients from './patients' export default { ...actions, diff --git a/src/locales/es/translations/patient/index.ts b/src/locales/es/translations/patient/index.ts index baa4c6e93b..032a935abb 100644 --- a/src/locales/es/translations/patient/index.ts +++ b/src/locales/es/translations/patient/index.ts @@ -1,6 +1,6 @@ export default { - "patient": { - "firstName": "Nombre de pila", - "lastName": "Apellido" - } + 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 index 9c1d7cd784..1bd4a6d5e3 100644 --- a/src/locales/es/translations/patients/index.ts +++ b/src/locales/es/translations/patients/index.ts @@ -1,8 +1,8 @@ export default { - "patients": { - "label": "Pacientes", - "viewPatients": "Ver pacientes", - "viewPatient": "Ver pacientes", - "newPatient": "Nuevo paciente" - } + patients: { + label: 'Pacientes', + viewPatients: 'Ver pacientes', + viewPatient: 'Ver pacientes', + newPatient: 'Nuevo paciente', + }, } diff --git a/src/locales/in/translations/actions/index.ts b/src/locales/in/translations/actions/index.ts index 3aa647caeb..5fa64c7d6a 100644 --- a/src/locales/in/translations/actions/index.ts +++ b/src/locales/in/translations/actions/index.ts @@ -1,9 +1,9 @@ export default { - "actions": { - "edit": "Edit", - "save": "Menyimpan", - "cancel": "Membatalkan", - "new": "Baru", - "list": "Daftar" - } + 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 index 4a74cbf1fa..f0f1d382ff 100644 --- a/src/locales/in/translations/dashboard/index.ts +++ b/src/locales/in/translations/dashboard/index.ts @@ -1,5 +1,5 @@ export default { - "dashboard": { - "label": "Dasbor" - } + dashboard: { + label: 'Dasbor', + }, } diff --git a/src/locales/in/translations/index.ts b/src/locales/in/translations/index.ts index 068c48304a..e948f4340c 100644 --- a/src/locales/in/translations/index.ts +++ b/src/locales/in/translations/index.ts @@ -1,7 +1,7 @@ -import actions from './actions'; -import dashboard from './dashboard'; -import patient from './patient'; -import patients from './patients'; +import actions from './actions' +import dashboard from './dashboard' +import patient from './patient' +import patients from './patients' export default { ...actions, diff --git a/src/locales/in/translations/patient/index.ts b/src/locales/in/translations/patient/index.ts index c1e856acba..282ba6df2c 100644 --- a/src/locales/in/translations/patient/index.ts +++ b/src/locales/in/translations/patient/index.ts @@ -1,6 +1,6 @@ export default { - "patient": { - "firstName": "Nama depan", - "lastName": "Nama keluarga" - } + 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 index 1b3c61d89f..069cd4d42b 100644 --- a/src/locales/in/translations/patients/index.ts +++ b/src/locales/in/translations/patients/index.ts @@ -1,8 +1,8 @@ export default { - "patients": { - "label": "Pasien", - "viewPatients": "Lihat Pasien", - "viewPatient": "Lihat Pasien", - "newPatient": "Pasien Baru" - } + patients: { + label: 'Pasien', + viewPatients: 'Lihat Pasien', + viewPatient: 'Lihat Pasien', + newPatient: 'Pasien Baru', + }, } diff --git a/src/locales/ja/translations/actions/index.ts b/src/locales/ja/translations/actions/index.ts index e9083f4d60..fdbc8f24b2 100644 --- a/src/locales/ja/translations/actions/index.ts +++ b/src/locales/ja/translations/actions/index.ts @@ -1,9 +1,9 @@ export default { - "actions": { - "edit": "編集", - "save": "セーブ", - "cancel": "キャンセル", - "new": "新しい", - "list": "リスト" - } + actions: { + edit: '編集', + save: 'セーブ', + cancel: 'キャンセル', + new: '新しい', + list: 'リスト', + }, } diff --git a/src/locales/ja/translations/dashboard/index.ts b/src/locales/ja/translations/dashboard/index.ts index e4116d4695..fb15f11b7a 100644 --- a/src/locales/ja/translations/dashboard/index.ts +++ b/src/locales/ja/translations/dashboard/index.ts @@ -1,5 +1,5 @@ export default { - "dashboard": { - "label": "ダッシュボード" - } + dashboard: { + label: 'ダッシュボード', + }, } diff --git a/src/locales/ja/translations/index.ts b/src/locales/ja/translations/index.ts index 068c48304a..e948f4340c 100644 --- a/src/locales/ja/translations/index.ts +++ b/src/locales/ja/translations/index.ts @@ -1,7 +1,7 @@ -import actions from './actions'; -import dashboard from './dashboard'; -import patient from './patient'; -import patients from './patients'; +import actions from './actions' +import dashboard from './dashboard' +import patient from './patient' +import patients from './patients' export default { ...actions, diff --git a/src/locales/ja/translations/patient/index.ts b/src/locales/ja/translations/patient/index.ts index c960028e79..5c16727425 100644 --- a/src/locales/ja/translations/patient/index.ts +++ b/src/locales/ja/translations/patient/index.ts @@ -1,6 +1,6 @@ export default { - "patient": { - "firstName": "ファーストネーム", - "lastName": "苗字" - } + patient: { + firstName: 'ファーストネーム', + lastName: '苗字', + }, } diff --git a/src/locales/ja/translations/patients/index.ts b/src/locales/ja/translations/patients/index.ts index e76d57c7be..c4b9bb219a 100644 --- a/src/locales/ja/translations/patients/index.ts +++ b/src/locales/ja/translations/patients/index.ts @@ -1,8 +1,8 @@ export default { - "patients": { - "label": "患者さん", - "viewPatients": "患者を見る", - "viewPatient": "患者を見る", - "newPatient": "新しい患者" - } + patients: { + label: '患者さん', + viewPatients: '患者を見る', + viewPatient: '患者を見る', + newPatient: '新しい患者', + }, } diff --git a/src/locales/pt/translations/actions/index.ts b/src/locales/pt/translations/actions/index.ts index 78e0631e66..f1038cae8f 100644 --- a/src/locales/pt/translations/actions/index.ts +++ b/src/locales/pt/translations/actions/index.ts @@ -1,9 +1,9 @@ export default { - "actions": { - "edit": "Editar", - "save": "Salvar", - "cancel": "Cancelar", - "new": "Novo", - "list": "Lista" - } + 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 index 240f973c1c..58656ab06c 100644 --- a/src/locales/pt/translations/dashboard/index.ts +++ b/src/locales/pt/translations/dashboard/index.ts @@ -1,5 +1,5 @@ export default { - "dashboard": { - "label": "Painel de controle" - } + dashboard: { + label: 'Painel de controle', + }, } diff --git a/src/locales/pt/translations/index.ts b/src/locales/pt/translations/index.ts index 068c48304a..e948f4340c 100644 --- a/src/locales/pt/translations/index.ts +++ b/src/locales/pt/translations/index.ts @@ -1,7 +1,7 @@ -import actions from './actions'; -import dashboard from './dashboard'; -import patient from './patient'; -import patients from './patients'; +import actions from './actions' +import dashboard from './dashboard' +import patient from './patient' +import patients from './patients' export default { ...actions, diff --git a/src/locales/pt/translations/patient/index.ts b/src/locales/pt/translations/patient/index.ts index fedd2ccb45..d0d1f2f2b7 100644 --- a/src/locales/pt/translations/patient/index.ts +++ b/src/locales/pt/translations/patient/index.ts @@ -1,6 +1,6 @@ export default { - "patient": { - "firstName": "Primeiro nome", - "lastName": "Último nome" - } + 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 index 87ea615802..c80b0e87b2 100644 --- a/src/locales/pt/translations/patients/index.ts +++ b/src/locales/pt/translations/patients/index.ts @@ -1,8 +1,8 @@ export default { - "patients": { - "label": "Pacientes", - "viewPatients": "Exibir pacientes", - "viewPatient": "Ver paciente", - "newPatient": "Novo Paciente" - } + patients: { + label: 'Pacientes', + viewPatients: 'Exibir pacientes', + viewPatient: 'Ver paciente', + newPatient: 'Novo Paciente', + }, } diff --git a/src/locales/ru/translations/actions/index.ts b/src/locales/ru/translations/actions/index.ts index e2013ca6c6..46aca5c9e9 100644 --- a/src/locales/ru/translations/actions/index.ts +++ b/src/locales/ru/translations/actions/index.ts @@ -1,9 +1,9 @@ export default { - "actions": { - "edit": "редактировать", - "save": "Сохранить", - "cancel": "Отмена", - "new": "новый", - "list": "Список" - } + actions: { + edit: 'редактировать', + save: 'Сохранить', + cancel: 'Отмена', + new: 'новый', + list: 'Список', + }, } diff --git a/src/locales/ru/translations/dashboard/index.ts b/src/locales/ru/translations/dashboard/index.ts index 82073fa46c..1c4b9618c8 100644 --- a/src/locales/ru/translations/dashboard/index.ts +++ b/src/locales/ru/translations/dashboard/index.ts @@ -1,5 +1,5 @@ export default { - "dashboard": { - "label": "Панель приборов" - } + dashboard: { + label: 'Панель приборов', + }, } diff --git a/src/locales/ru/translations/index.ts b/src/locales/ru/translations/index.ts index 068c48304a..e948f4340c 100644 --- a/src/locales/ru/translations/index.ts +++ b/src/locales/ru/translations/index.ts @@ -1,7 +1,7 @@ -import actions from './actions'; -import dashboard from './dashboard'; -import patient from './patient'; -import patients from './patients'; +import actions from './actions' +import dashboard from './dashboard' +import patient from './patient' +import patients from './patients' export default { ...actions, diff --git a/src/locales/ru/translations/patient/index.ts b/src/locales/ru/translations/patient/index.ts index a4f7034c15..0dd7e58a59 100644 --- a/src/locales/ru/translations/patient/index.ts +++ b/src/locales/ru/translations/patient/index.ts @@ -1,6 +1,6 @@ export default { - "patient": { - "firstName": "Имя", - "lastName": "Фамилия" - } + patient: { + firstName: 'Имя', + lastName: 'Фамилия', + }, } diff --git a/src/locales/ru/translations/patients/index.ts b/src/locales/ru/translations/patients/index.ts index 2c03a06674..5d96b8c79e 100644 --- a/src/locales/ru/translations/patients/index.ts +++ b/src/locales/ru/translations/patients/index.ts @@ -1,8 +1,8 @@ export default { - "patients": { - "label": "Пациенты", - "viewPatients": "Просмотр пациентов", - "viewPatient": "Просмотр пациента", - "newPatient": "Новый пациент" - } + patients: { + label: 'Пациенты', + viewPatients: 'Просмотр пациентов', + viewPatient: 'Просмотр пациента', + newPatient: 'Новый пациент', + }, } diff --git a/src/locales/zr/translations/actions/index.ts b/src/locales/zr/translations/actions/index.ts index 1cd0766cd1..b1d02b3139 100644 --- a/src/locales/zr/translations/actions/index.ts +++ b/src/locales/zr/translations/actions/index.ts @@ -1,9 +1,9 @@ export default { - "actions": { - "edit": "编辑", - "save": "保存", - "cancel": "取消", - "new": "新", - "list": "清单" - } + actions: { + edit: '编辑', + save: '保存', + cancel: '取消', + new: '新', + list: '清单', + }, } diff --git a/src/locales/zr/translations/dashboard/index.ts b/src/locales/zr/translations/dashboard/index.ts index 3196036732..26862ff746 100644 --- a/src/locales/zr/translations/dashboard/index.ts +++ b/src/locales/zr/translations/dashboard/index.ts @@ -1,5 +1,5 @@ export default { - "dashboard": { - "label": "仪表板" - } + dashboard: { + label: '仪表板', + }, } diff --git a/src/locales/zr/translations/index.ts b/src/locales/zr/translations/index.ts index 068c48304a..e948f4340c 100644 --- a/src/locales/zr/translations/index.ts +++ b/src/locales/zr/translations/index.ts @@ -1,7 +1,7 @@ -import actions from './actions'; -import dashboard from './dashboard'; -import patient from './patient'; -import patients from './patients'; +import actions from './actions' +import dashboard from './dashboard' +import patient from './patient' +import patients from './patients' export default { ...actions, diff --git a/src/locales/zr/translations/patient/index.ts b/src/locales/zr/translations/patient/index.ts index ddca18b3dd..bd6376e464 100644 --- a/src/locales/zr/translations/patient/index.ts +++ b/src/locales/zr/translations/patient/index.ts @@ -1,6 +1,6 @@ export default { - "patient": { - "firstName": "名字", - "lastName": "姓" - } + patient: { + firstName: '名字', + lastName: '姓', + }, } diff --git a/src/locales/zr/translations/patients/index.ts b/src/locales/zr/translations/patients/index.ts index 1fb6acfb59..3f1a814277 100644 --- a/src/locales/zr/translations/patients/index.ts +++ b/src/locales/zr/translations/patients/index.ts @@ -1,8 +1,8 @@ export default { - "patients": { - "label": "耐心", - "viewPatients": "查看患者", - "viewPatient": "查看患者", - "newPatient": "新病人" - } + patients: { + label: '耐心', + viewPatients: '查看患者', + viewPatient: '查看患者', + newPatient: '新病人', + }, }