diff --git a/src/i18n.ts b/src/i18n.ts index fb7d5f76c9..0b5c79d50e 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -4,11 +4,11 @@ import { initReactI18next } from 'react-i18next' import translationAR from './locales/ar/translations' import translationDE from './locales/de/translations' -import translationEN from './locales/en/translations' +import translationEnUs from './locales/enUs/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 translationPtBR from './locales/ptBr/translations' import translationRU from './locales/ru/translations' import translationZR from './locales/zr/translations' @@ -20,7 +20,7 @@ const resources = { translation: translationDE, }, en: { - translation: translationEN, + translation: translationEnUs, }, es: { translation: translationES, @@ -32,7 +32,7 @@ const resources = { translation: translationJA, }, pt: { - translation: translationPT, + translation: translationPtBR, }, ru: { translation: translationRU, diff --git a/src/locales/en/translations/patient/index.ts b/src/locales/en/translations/patient/index.ts deleted file mode 100644 index 6ebbb21f88..0000000000 --- a/src/locales/en/translations/patient/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export default { - patient: { - firstName: 'First Name', - lastName: 'Last Name', - }, -} diff --git a/src/locales/en/translations/actions/index.ts b/src/locales/enUs/translations/actions/index.ts similarity index 86% rename from src/locales/en/translations/actions/index.ts rename to src/locales/enUs/translations/actions/index.ts index b1598ec1c9..4f57d5bcbe 100644 --- a/src/locales/en/translations/actions/index.ts +++ b/src/locales/enUs/translations/actions/index.ts @@ -5,5 +5,6 @@ export default { cancel: 'Cancel', new: 'New', list: 'List', + search: "Search" }, } diff --git a/src/locales/en/translations/dashboard/index.ts b/src/locales/enUs/translations/dashboard/index.ts similarity index 100% rename from src/locales/en/translations/dashboard/index.ts rename to src/locales/enUs/translations/dashboard/index.ts diff --git a/src/locales/pt/translations/index.ts b/src/locales/enUs/translations/index.ts similarity index 61% rename from src/locales/pt/translations/index.ts rename to src/locales/enUs/translations/index.ts index e948f4340c..baca847ac0 100644 --- a/src/locales/pt/translations/index.ts +++ b/src/locales/enUs/translations/index.ts @@ -2,10 +2,16 @@ import actions from './actions' import dashboard from './dashboard' import patient from './patient' import patients from './patients' +import scheduling from './scheduling' +import states from './states' +import sex from './sex' export default { ...actions, ...dashboard, ...patient, ...patients, + ...scheduling, + ...states, + ...sex, } diff --git a/src/locales/enUs/translations/patient/index.ts b/src/locales/enUs/translations/patient/index.ts new file mode 100644 index 0000000000..e970d31a9e --- /dev/null +++ b/src/locales/enUs/translations/patient/index.ts @@ -0,0 +1,43 @@ +export default { + patient: { + firstName: 'First Name', + lastName: 'Last Name', + suffix: "Suffix", + prefix: "Prefix", + givenName: "Given Name", + familyName: "Family Name", + dateOfBirth: "Date of Birth", + approximateDateOfBirth: "Approximate Date of Birth", + age: "Age", + approximateAge: "Approximate Age", + placeOfBirth: "Place of Birth", + sex: "Sex", + phoneNumber: "Phone Number", + email: "Email", + address: "Address", + occupation: "Occupation", + type: "Patient Type", + preferredLanguage: "Preferred Language", + basicInformation: "Basic Information", + generalInformation: "General Information", + contactInformation: "Contact Information", + unknownDateOfBirth: "Unknown", + relatedPerson: "Related Person", + relatedPersons: { + error: { + relatedPersonRequired: "Related Person is required.", + relationshipTypeRequired: "Relationship Type is required." + }, + label: "Related Persons", + new: "New Related Person", + relationshipType: "Relationship Type" + }, + types: { + charity: "Charity", + private: "Private" + }, + errors: { + patientGivenNameRequired: "Patient Given Name is required." + } + }, +} diff --git a/src/locales/en/translations/patients/index.ts b/src/locales/enUs/translations/patients/index.ts similarity index 74% rename from src/locales/en/translations/patients/index.ts rename to src/locales/enUs/translations/patients/index.ts index 8d64fdc3f9..8d1e463fb6 100644 --- a/src/locales/en/translations/patients/index.ts +++ b/src/locales/enUs/translations/patients/index.ts @@ -4,5 +4,6 @@ export default { viewPatients: 'View Patients', viewPatient: 'View Patient', newPatient: 'New Patient', + successfullyCreated: "Successfully created patient" }, } diff --git a/src/locales/enUs/translations/scheduling/index.ts b/src/locales/enUs/translations/scheduling/index.ts new file mode 100644 index 0000000000..cc41e3b830 --- /dev/null +++ b/src/locales/enUs/translations/scheduling/index.ts @@ -0,0 +1,29 @@ +export default { + scheduling: { + label: "Scheduling", + appointments: { + label: "Appointments", + new: "New Appointment" + }, + appointment: { + startDate: "Start Date", + endDate: "End Date", + location: "Location", + type: "Type", + types: { + checkup: "Checkup", + emergency: "Emergency", + followUp: "Follow Up", + routine: "Routine", + walkUp: "Walk Up" + }, + errors: { + patientRequired: "Patient is required.", + errorCreatingAppointment: "Error Creating Appointment!", + startDateMustBeBeforeEndDate: "Start Time must be before End Time." + }, + reason: "Reason", + patient: "Patient" + } + }, +} diff --git a/src/locales/enUs/translations/sex/index.ts b/src/locales/enUs/translations/sex/index.ts new file mode 100644 index 0000000000..31154b2f87 --- /dev/null +++ b/src/locales/enUs/translations/sex/index.ts @@ -0,0 +1,8 @@ +export default { + sex: { + male: "Male", + female: "Female", + other: "Other", + unknown: "Unknown" + }, +} diff --git a/src/locales/enUs/translations/states/index.ts b/src/locales/enUs/translations/states/index.ts new file mode 100644 index 0000000000..ab229a4696 --- /dev/null +++ b/src/locales/enUs/translations/states/index.ts @@ -0,0 +1,6 @@ +export default { + states: { + success: "Success!", + error: "Error!" + }, +} diff --git a/src/locales/pt/translations/patient/index.ts b/src/locales/pt/translations/patient/index.ts deleted file mode 100644 index d0d1f2f2b7..0000000000 --- a/src/locales/pt/translations/patient/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export default { - patient: { - firstName: 'Primeiro nome', - lastName: 'Último nome', - }, -} diff --git a/src/locales/pt/translations/actions/index.ts b/src/locales/ptBr/translations/actions/index.ts similarity index 85% rename from src/locales/pt/translations/actions/index.ts rename to src/locales/ptBr/translations/actions/index.ts index f1038cae8f..8e333610eb 100644 --- a/src/locales/pt/translations/actions/index.ts +++ b/src/locales/ptBr/translations/actions/index.ts @@ -5,5 +5,6 @@ export default { cancel: 'Cancelar', new: 'Novo', list: 'Lista', + search: 'Pesquisar' }, } diff --git a/src/locales/pt/translations/dashboard/index.ts b/src/locales/ptBr/translations/dashboard/index.ts similarity index 100% rename from src/locales/pt/translations/dashboard/index.ts rename to src/locales/ptBr/translations/dashboard/index.ts diff --git a/src/locales/en/translations/index.ts b/src/locales/ptBr/translations/index.ts similarity index 61% rename from src/locales/en/translations/index.ts rename to src/locales/ptBr/translations/index.ts index e948f4340c..baca847ac0 100644 --- a/src/locales/en/translations/index.ts +++ b/src/locales/ptBr/translations/index.ts @@ -2,10 +2,16 @@ import actions from './actions' import dashboard from './dashboard' import patient from './patient' import patients from './patients' +import scheduling from './scheduling' +import states from './states' +import sex from './sex' export default { ...actions, ...dashboard, ...patient, ...patients, + ...scheduling, + ...states, + ...sex, } diff --git a/src/locales/ptBr/translations/patient/index.ts b/src/locales/ptBr/translations/patient/index.ts new file mode 100644 index 0000000000..392c4ebc44 --- /dev/null +++ b/src/locales/ptBr/translations/patient/index.ts @@ -0,0 +1,43 @@ +export default { + patient: { + firstName: 'Nome', + lastName: 'Sobrenome', + suffix: "Sufixo", + prefix: "Prefixo", + givenName: "Nome Próprio", + familyName: "Nome de Familia", + dateOfBirth: "Data de Nascimento", + approximateDateOfBirth: "Data de Nascimento Aproximada", + age: "Idade", + approximateAge: "Aproximada Idade", + placeOfBirth: "Local de Nascimento", + sex: "Sexo", + phoneNumber: "Numero de Telefone", + email: "Email", + address: "Endereço", + occupation: "Ocupação", + type: "Tipo de Paciente", + preferredLanguage: "Idioma de Preferência", + basicInformation: "Informação Basica", + generalInformation: "Informação Geral", + contactInformation: "Informação de Contato", + unknownDateOfBirth: "Data de Nascimento Desconhecida", + relatedPerson: "Pessoa Relacionada", + relatedPersons: { + error: { + relatedPersonRequired: "Pessoa relacionada é necessária.", + relationshipTypeRequired: "Tipo de relacionamento é necessário." + }, + label: "Pessoas Relacionadas", + new: "Nova Pessoa Relacionada", + relationshipType: "Tipo de Relacionamento" + }, + types: { + charity: "Caridade", + private: "Particular" + }, + errors: { + patientGivenNameRequired: "Patient Given Name is required." + } + }, +} diff --git a/src/locales/pt/translations/patients/index.ts b/src/locales/ptBr/translations/patients/index.ts similarity index 100% rename from src/locales/pt/translations/patients/index.ts rename to src/locales/ptBr/translations/patients/index.ts diff --git a/src/locales/ptBr/translations/scheduling/index.ts b/src/locales/ptBr/translations/scheduling/index.ts new file mode 100644 index 0000000000..83a4a54393 --- /dev/null +++ b/src/locales/ptBr/translations/scheduling/index.ts @@ -0,0 +1,29 @@ +export default { + scheduling: { + label: "Agendamento", + appointments: { + label: "Agendamantos", + new: "Novo Agendamento" + }, + appointment: { + startDate: "Data de início", + endDate: "Data final", + location: "Localização", + type: "Tipo", + types: { + checkup: "Checkup", + emergency: "Emergência", + followUp: "Acompanhamento", + routine: "Rotina", + walkIn: "Primeira consulta" + }, + errors: { + patientRequired: "Paciente é necessario.", + errorCreatingAppointment: "Algo deu errado criando o agendamento.", + startDateMustBeBeforeEndDate: "Horário de início deve ser antes do horário final." + }, + reason: "Razão", + patient: "Paciente" + } + }, +} diff --git a/src/locales/ptBr/translations/sex/index.ts b/src/locales/ptBr/translations/sex/index.ts new file mode 100644 index 0000000000..8092e32909 --- /dev/null +++ b/src/locales/ptBr/translations/sex/index.ts @@ -0,0 +1,8 @@ +export default { + sex: { + male: "Masculino", + female: "Feminino", + other: "Outro", + unknown: "Desconhecido" + }, +} diff --git a/src/locales/ptBr/translations/states/index.ts b/src/locales/ptBr/translations/states/index.ts new file mode 100644 index 0000000000..04158c39e4 --- /dev/null +++ b/src/locales/ptBr/translations/states/index.ts @@ -0,0 +1,6 @@ +export default { + states: { + success: "Sucesso!", + error: "Algo deu errado.." + }, +}