From 7fa152bd2367884941e615f02073c0e1f66a4f56 Mon Sep 17 00:00:00 2001 From: trott Date: Mon, 6 Jul 2020 16:42:51 +0500 Subject: [PATCH] feat(incidents, scheduling, other): add russian locale --- .../ru/translations/incidents/index.ts | 35 +++++++++++++++++++ src/shared/locales/ru/translations/index.ts | 10 ++++++ .../locales/ru/translations/labs/index.ts | 35 ++++++++++++++++++- .../ru/translations/network-status/index.ts | 6 ++++ .../locales/ru/translations/patients/index.ts | 4 +++ .../ru/translations/scheduling/index.ts | 30 ++++++++++++++++ .../locales/ru/translations/settings/index.ts | 7 +++- .../locales/ru/translations/sex/index.ts | 8 +++++ .../locales/ru/translations/states/index.ts | 6 ++++ 9 files changed, 139 insertions(+), 2 deletions(-) create mode 100644 src/shared/locales/ru/translations/incidents/index.ts create mode 100644 src/shared/locales/ru/translations/network-status/index.ts create mode 100644 src/shared/locales/ru/translations/scheduling/index.ts create mode 100644 src/shared/locales/ru/translations/sex/index.ts create mode 100644 src/shared/locales/ru/translations/states/index.ts diff --git a/src/shared/locales/ru/translations/incidents/index.ts b/src/shared/locales/ru/translations/incidents/index.ts new file mode 100644 index 0000000000..b9ea6bc4f6 --- /dev/null +++ b/src/shared/locales/ru/translations/incidents/index.ts @@ -0,0 +1,35 @@ +export default { + incidents: { + filterTitle: 'Фильтровать по статусу', + label: 'Инцидеты', + actions: { + report: 'Сообщить', + }, + status: { + reported: 'reported', + all: 'all', + }, + reports: { + label: 'Отправленные инциденты', + new: 'Сообщить об инциденте', + view: 'Просмотреть инцидент', + dateOfIncident: 'Дата инцидента', + department: 'Подразделение', + category: 'Категория', + categoryItem: 'Подкатегория', + description: 'Описание инцидента', + code: 'Код', + reportedBy: 'Кем сообщено', + reportedOn: 'Когда сообщено', + status: 'Статус', + error: { + dateRequired: 'Необходимо указать дату.', + dateMustBeInThePast: 'Дата должна быть в прошлом.', + departmentRequired: 'Необходимо указать департамент.', + categoryRequired: 'Необходимо указать категорию', + categoryItemRequired: 'Необходимо указать подкатегорию', + descriptionRequired: 'Необходимо указать описание', + }, + }, + }, +} diff --git a/src/shared/locales/ru/translations/index.ts b/src/shared/locales/ru/translations/index.ts index 0a23abd324..dab256ca6f 100644 --- a/src/shared/locales/ru/translations/index.ts +++ b/src/shared/locales/ru/translations/index.ts @@ -1,14 +1,24 @@ import actions from './actions' import dashboard from './dashboard' +import incidents from './incidents' import labs from './labs' +import networkStatus from './network-status' import patient from './patient' import patients from './patients' +import scheduling from './scheduling' import settings from './settings' +import sex from './sex' +import states from './states' export default { ...actions, ...dashboard, + ...sex, + ...incidents, + ...networkStatus, ...labs, + ...states, + ...scheduling, ...patient, ...patients, ...settings, diff --git a/src/shared/locales/ru/translations/labs/index.ts b/src/shared/locales/ru/translations/labs/index.ts index 1c889914f5..c423a384b3 100644 --- a/src/shared/locales/ru/translations/labs/index.ts +++ b/src/shared/locales/ru/translations/labs/index.ts @@ -1,7 +1,40 @@ export default { labs: { + label: 'Анализы', + filterTitle: 'Фильтровать по статусу', + search: 'Поиск анализов', + status: { + requested: 'Запрошен', + completed: 'Завершен', + canceled: 'Отменен', + }, + filter: { + all: 'Все статусы', + }, + requests: { + label: 'Запросы анализов', + new: 'Новый запрос анализа', + view: 'Посмотреть анализ', + cancel: 'Отменить анализ', + complete: 'Завершить анализ', + error: { + unableToRequest: 'Невозможно создать новый запрос анализа.', + unableToComplete: 'Невозможно завершить анализ.', + typeRequired: 'Необходимо указать тип.', + resultRequiredToComplete: 'Необходимо указать результат.', + }, + }, lab: { - code: 'Лабораторный код', + code: 'Код анализа', + status: 'Статус', + for: 'Для', + type: 'Тип', + result: 'Результат', + notes: 'Заметки', + requestedOn: 'Когда запрошен', + completedOn: 'Когда завершен', + canceledOn: 'Когда отменен', + patient: 'Пациент', }, }, } diff --git a/src/shared/locales/ru/translations/network-status/index.ts b/src/shared/locales/ru/translations/network-status/index.ts new file mode 100644 index 0000000000..0c6c367f87 --- /dev/null +++ b/src/shared/locales/ru/translations/network-status/index.ts @@ -0,0 +1,6 @@ +export default { + networkStatus: { + offline: 'вы работаете в оффлайн режиме', + online: 'вы снова онлайн', + }, +} diff --git a/src/shared/locales/ru/translations/patients/index.ts b/src/shared/locales/ru/translations/patients/index.ts index e6040e7b39..43c675bad4 100644 --- a/src/shared/locales/ru/translations/patients/index.ts +++ b/src/shared/locales/ru/translations/patients/index.ts @@ -5,5 +5,9 @@ export default { viewPatient: 'Просмотр пациента', editPatient: 'Редактировать пациента', newPatient: 'Новый пациент', + patientsList: 'Список пациентов', + successfullyCreated: 'Пациент успешно добавлен', + successfullyAddedNote: 'Новая заметка успешно добавлена', + successfullyAddedRelatedPerson: 'Успешно добавлен новый родственник', }, } diff --git a/src/shared/locales/ru/translations/scheduling/index.ts b/src/shared/locales/ru/translations/scheduling/index.ts new file mode 100644 index 0000000000..749d4fbc44 --- /dev/null +++ b/src/shared/locales/ru/translations/scheduling/index.ts @@ -0,0 +1,30 @@ +export default { + scheduling: { + label: 'Расписание', + appointments: { + label: 'Назначения', + new: 'Новое назначение', + schedule: 'Расписание назначений', + editAppointment: 'Редактировать назначение', + deleteAppointment: 'Удалить назначение', + viewAppointment: 'Просмотр назначения', + }, + appointment: { + startDate: 'Дата начала', + endDate: 'Дата окончания', + location: 'Место', + type: 'Тип', + errors: { + createAppointmentError: 'Невозможно создать назначение.', + updateAppointmentError: 'Невозможно обновить назначение.', + patientRequired: 'Необходимо указать пациента.', + startDateMustBeBeforeEndDate: 'Дата начала не может быть позже даты конца.', + }, + reason: 'Причина', + patient: 'Пациент', + deleteConfirmationMessage: 'Вы уверены, что хотите удалить назначение?', + successfullyCreated: 'Назначение успешно создано.', + successfullyDeleted: 'Назначение успешно удалено.', + }, + }, +} diff --git a/src/shared/locales/ru/translations/settings/index.ts b/src/shared/locales/ru/translations/settings/index.ts index 683884e258..8bd5808db5 100644 --- a/src/shared/locales/ru/translations/settings/index.ts +++ b/src/shared/locales/ru/translations/settings/index.ts @@ -1,3 +1,8 @@ export default { - settings: {}, + settings: { + label: 'Настройки', + language: { + label: 'Язык', + }, + }, } diff --git a/src/shared/locales/ru/translations/sex/index.ts b/src/shared/locales/ru/translations/sex/index.ts new file mode 100644 index 0000000000..0f3d1da263 --- /dev/null +++ b/src/shared/locales/ru/translations/sex/index.ts @@ -0,0 +1,8 @@ +export default { + sex: { + male: 'Мужчина', + female: 'Женщина', + other: 'Другое', + unknown: 'Неизвестно', + }, +} diff --git a/src/shared/locales/ru/translations/states/index.ts b/src/shared/locales/ru/translations/states/index.ts new file mode 100644 index 0000000000..0a38906de5 --- /dev/null +++ b/src/shared/locales/ru/translations/states/index.ts @@ -0,0 +1,6 @@ +export default { + states: { + success: 'Успешно!', + error: 'Ошибка!', + }, +}