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

Commit

Permalink
feat(localization): add portuguese language (#2018)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasBN committed Apr 26, 2020
1 parent 6d1f5a4 commit 4a7515a
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/locales/ptBr/translations/actions/index.ts
@@ -1,10 +1,15 @@
export default {
actions: {
label: 'Ações',
edit: 'Editar',
save: 'Salvar',
update: 'Atualizar',
complete: 'Completar',
delete: 'Eliminar',
cancel: 'Cancelar',
new: 'Novo',
list: 'Lista',
search: 'Pesquisar',
confirmDelete: 'Eliminar confirmação',
},
}
2 changes: 2 additions & 0 deletions src/locales/ptBr/translations/index.ts
Expand Up @@ -5,6 +5,7 @@ import patients from './patients'
import scheduling from './scheduling'
import states from './states'
import sex from './sex'
import labs from './labs'

export default {
...actions,
Expand All @@ -14,4 +15,5 @@ export default {
...scheduling,
...states,
...sex,
...labs,
}
29 changes: 29 additions & 0 deletions src/locales/ptBr/translations/labs/index.ts
@@ -0,0 +1,29 @@
export default {
labs: {
label: 'Laboratório',
requests: {
label: 'Pedidos de Laboratório',
new: 'Novo Pedido de Laboratório',
view: 'Ver Laboratório',
cancel: 'Cancelar Laboratório',
complete: 'Completar Laboratório',
error: {
unableToRequest: 'Impossibilidade de criar um novo pedido de laboratório.',
unableToComplete: 'Impossibilidade de completar o pedido de laboratório.',
typeRequired: 'O tipo é necessário.',
resultRequiredToComplete: 'O resultado é necessário para completar.',
},
},
lab: {
status: 'Estado',
for: 'Por',
type: 'Tipo',
result: 'Result',
notes: 'Resultado',
requestedOn: 'Perdiu em',
completedOn: 'Completou em',
canceledOn: 'Cancelou em',
patient: 'Paciente',
},
},
}
25 changes: 25 additions & 0 deletions src/locales/ptBr/translations/patient/index.ts
@@ -1,5 +1,6 @@
export default {
patient: {
code: 'Código do paciente',
firstName: 'Nome',
lastName: 'Sobrenome',
suffix: 'Sufixo',
Expand All @@ -25,18 +26,29 @@ export default {
relatedPerson: 'Pessoa Relacionada',
relatedPersons: {
error: {
unableToAddRelatedPerson: 'Impossibilidade de adicionar nova pessoa relacionadas.',
relatedPersonRequired: 'Pessoa relacionada é necessária.',
relationshipTypeRequired: 'Tipo de relacionamento é necessário.',
},
label: 'Pessoas Relacionadas',
new: 'Nova Pessoa Relacionada',
add: 'Addicione Pessoa Relacionada',
relationshipType: 'Tipo de Relacionamento',
warning: {
noRelatedPersons: 'Sem pessoas relacionadas',
},
addRelatedPersonAbove: 'Addicione uma pessoa relacionada utilizando o botão acima.',
},
appointments: {
new: 'Adicionar um compromisso',
},
allergies: {
label: 'Alergias',
allergyName: 'Nome da Alergia',
new: 'Adicionar alergia',
error: {
nameRequired: 'Nome da alergia é necessário.',
unableToAdd: 'Impossibilidade de adicionar alergia.',
},
warning: {
noAllergies: 'Sem alergias',
Expand All @@ -59,6 +71,19 @@ export default {
addDiagnosisAbove: 'Adicione um diagnóstico utilizando o botão acima.',
successfullyAdded: 'Um novo diagnóstico foi adicionado com sucesso!',
},
note: 'Nota',
notes: {
label: 'Notas',
new: 'Adicionar novas notas',
warning: {
noNotes: 'Sem Notas',
},
error: {
noteRequired: 'Uma nota é necessário.',
unableToAdd: 'Impossibilidade adicionar uma nova nota.',
},
addNoteAbove: 'Adicione uma nota utilizando o botão acima.',
},
types: {
charity: 'Caridade',
private: 'Particular',
Expand Down
4 changes: 4 additions & 0 deletions src/locales/ptBr/translations/patients/index.ts
@@ -1,8 +1,12 @@
export default {
patients: {
label: 'Pacientes',
patientsList: 'Lista de pacientes',
viewPatients: 'Exibir pacientes',
viewPatient: 'Ver paciente',
newPatient: 'Novo Paciente',
successfullyCreated: 'Paciente criado com sucesso',
successfullyAddedNote: 'Adicionou uma nova nota com sucesso',
successfullyAddedRelatedPerson: 'Adicionou uma pessoa relacionada com sucesso',
},
}
6 changes: 6 additions & 0 deletions src/locales/ptBr/translations/scheduling/index.ts
Expand Up @@ -4,6 +4,10 @@ export default {
appointments: {
label: 'Agendamantos',
new: 'Novo Agendamento',
schedule: 'Agenda de compromissos',
editAppointment: 'Editar um compromisso',
deleteAppointment: 'Eliminar um compromisso',
viewAppointment: 'Ver um compromisso',
},
appointment: {
startDate: 'Data de início',
Expand All @@ -24,6 +28,8 @@ export default {
},
reason: 'Razão',
patient: 'Paciente',
deleteConfirmationMessage: 'Tem a certeza de que deseja eliminar este compromisso?',
successfullyCreated: 'Compromisso criado com sucesso',
},
},
}

1 comment on commit 4a7515a

@vercel
Copy link

@vercel vercel bot commented on 4a7515a Apr 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.