Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix(i18n): update translation resources for enUs and ptBr
Browse files Browse the repository at this point in the history
fix #1668
  • Loading branch information
ocBruno committed Feb 2, 2020
1 parent 1006506 commit 68bb92c
Show file tree
Hide file tree
Showing 19 changed files with 191 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -20,7 +20,7 @@ const resources = {
translation: translationDE,
},
en: {
translation: translationEN,
translation: translationEnUs,
},
es: {
translation: translationES,
Expand All @@ -32,7 +32,7 @@ const resources = {
translation: translationJA,
},
pt: {
translation: translationPT,
translation: translationPtBR,
},
ru: {
translation: translationRU,
Expand Down
6 changes: 0 additions & 6 deletions src/locales/en/translations/patient/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export default {
cancel: 'Cancel',
new: 'New',
list: 'List',
search: "Search"
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
43 changes: 43 additions & 0 deletions src/locales/enUs/translations/patient/index.ts
Original file line number Diff line number Diff line change
@@ -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."
}
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ export default {
viewPatients: 'View Patients',
viewPatient: 'View Patient',
newPatient: 'New Patient',
successfullyCreated: "Successfully created patient"
},
}
29 changes: 29 additions & 0 deletions src/locales/enUs/translations/scheduling/index.ts
Original file line number Diff line number Diff line change
@@ -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"
}
},
}
8 changes: 8 additions & 0 deletions src/locales/enUs/translations/sex/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
sex: {
male: "Male",
female: "Female",
other: "Other",
unknown: "Unknown"
},
}
6 changes: 6 additions & 0 deletions src/locales/enUs/translations/states/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
states: {
success: "Success!",
error: "Error!"
},
}
6 changes: 0 additions & 6 deletions src/locales/pt/translations/patient/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export default {
cancel: 'Cancelar',
new: 'Novo',
list: 'Lista',
search: 'Pesquisar'
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
43 changes: 43 additions & 0 deletions src/locales/ptBr/translations/patient/index.ts
Original file line number Diff line number Diff line change
@@ -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."
}
},
}
29 changes: 29 additions & 0 deletions src/locales/ptBr/translations/scheduling/index.ts
Original file line number Diff line number Diff line change
@@ -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"
}
},
}
8 changes: 8 additions & 0 deletions src/locales/ptBr/translations/sex/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
sex: {
male: "Masculino",
female: "Feminino",
other: "Outro",
unknown: "Desconhecido"
},
}
6 changes: 6 additions & 0 deletions src/locales/ptBr/translations/states/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
states: {
success: "Sucesso!",
error: "Algo deu errado.."
},
}

0 comments on commit 68bb92c

Please sign in to comment.