Merge pull request #250 from sconetto/feat-update-translations-247
feat(i18n): update pt-br and add pt-pt
This commit is contained in:
commit
5533ac39cb
@ -1,5 +1,6 @@
|
|||||||
import US_EN from './locales/us-en';
|
import US_EN from './locales/us-en';
|
||||||
import PT_BR from './locales/pt-br';
|
import PT_BR from './locales/pt-br';
|
||||||
|
import PT_PT from './locales/pt-pt';
|
||||||
|
|
||||||
export type I18N = typeof US_EN;
|
export type I18N = typeof US_EN;
|
||||||
|
|
||||||
@ -9,6 +10,7 @@ export type I18NDeepPartial = {
|
|||||||
|
|
||||||
export const LOCALE_TEXT: Record<string, I18NDeepPartial | undefined> = {
|
export const LOCALE_TEXT: Record<string, I18NDeepPartial | undefined> = {
|
||||||
'pt-br': PT_BR,
|
'pt-br': PT_BR,
|
||||||
|
'pt-pt': PT_PT,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getTextForLocale = (
|
export const getTextForLocale = (
|
||||||
|
|||||||
@ -8,7 +8,7 @@ const TEXT: I18NDeepPartial = {
|
|||||||
taken: 'Capturado',
|
taken: 'Capturado',
|
||||||
created: 'Criado',
|
created: 'Criado',
|
||||||
updated: 'Atualizado',
|
updated: 'Atualizado',
|
||||||
copied: 'Link para foto copiado',
|
copied: 'Link para a foto copiada',
|
||||||
},
|
},
|
||||||
category: {
|
category: {
|
||||||
camera: 'Câmera',
|
camera: 'Câmera',
|
||||||
@ -19,30 +19,30 @@ const TEXT: I18NDeepPartial = {
|
|||||||
lensPlural: 'Lentes',
|
lensPlural: 'Lentes',
|
||||||
tag: 'Tag',
|
tag: 'Tag',
|
||||||
tagPlural: 'Tags',
|
tagPlural: 'Tags',
|
||||||
taggedPhotos: 'Fotos Marcadas',
|
taggedPhotos: 'Fotos marcadas',
|
||||||
taggedPhrase: (tag: string) => `Fotos marcadas com '${tag}'`,
|
taggedPhrase: (tag: string) => `Fotos marcadas com '${tag}'`,
|
||||||
taggedFavs: 'Fotos Favoritas',
|
taggedFavs: 'Fotos favoritas',
|
||||||
recipe: 'Receita',
|
recipe: 'Receita',
|
||||||
recipePlural: 'Receitas',
|
recipePlural: 'Receitas',
|
||||||
recipeShare: (recipe: string) => `Fotos da receita ${recipe}`,
|
recipeShare: (recipe: string) => `Fotos da receita ${recipe}`,
|
||||||
film: 'Filme',
|
film: 'Filme',
|
||||||
filmPlural: 'Filmes',
|
filmPlural: 'Filmes',
|
||||||
filmShare: (film: string) => `Fotos tiradas com ${film}`,
|
filmShare: (film: string) => `Fotos tiradas com ${film}`,
|
||||||
focalLength: 'Distância Focal',
|
focalLength: 'Distância focal',
|
||||||
focalLengthPlural: 'Distâncias Focais',
|
focalLengthPlural: 'Distâncias focais',
|
||||||
focalLengthTitle: (focal: string) => `Distância Focal ${focal}`,
|
focalLengthTitle: (focal: string) => `Distância focal ${focal}`,
|
||||||
focalLengthShare: (focal: string) => `Fotos tiradas em ${focal}`,
|
focalLengthShare: (focal: string) => `Fotos tiradas em ${focal}`,
|
||||||
},
|
},
|
||||||
nav: {
|
nav: {
|
||||||
home: 'Início',
|
home: 'Início',
|
||||||
feed: 'Feed',
|
feed: 'Feed',
|
||||||
grid: 'Grade',
|
grid: 'Grade',
|
||||||
admin: 'Menu de Admin',
|
admin: 'Menu de administrador',
|
||||||
search: 'Pesquisar',
|
search: 'Pesquisar',
|
||||||
prev: 'Anterior',
|
prev: 'Anterior',
|
||||||
prevShort: 'Ant',
|
prevShort: 'Ant',
|
||||||
next: 'Próximo',
|
next: 'Próximo',
|
||||||
nextShort: 'Prox',
|
nextShort: 'Próx',
|
||||||
},
|
},
|
||||||
cmdk: {
|
cmdk: {
|
||||||
placeholder: 'Pesquisar fotos, visualizações, configurações ...',
|
placeholder: 'Pesquisar fotos, visualizações, configurações ...',
|
||||||
@ -50,12 +50,12 @@ const TEXT: I18NDeepPartial = {
|
|||||||
noResults: 'Nenhum resultado encontrado',
|
noResults: 'Nenhum resultado encontrado',
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
'35mm': 'Equivalente 35mm',
|
'35mm': 'Equivalente em 35mm',
|
||||||
zoom: 'Aumentar Zoom',
|
zoom: 'Aumentar zoom',
|
||||||
sharePhoto: 'Compartilhar Foto',
|
sharePhoto: 'Compartilhar Foto',
|
||||||
recipeInfo: 'Informações da Receita',
|
recipeInfo: 'Informações da receita',
|
||||||
recipeCopy: 'Copiar Texto da Receita',
|
recipeCopy: 'Copiar texto da receita',
|
||||||
download: 'Baixar Arquivo Original',
|
download: 'Baixar arquivo original',
|
||||||
},
|
},
|
||||||
theme: {
|
theme: {
|
||||||
theme: 'Tema',
|
theme: 'Tema',
|
||||||
@ -66,39 +66,39 @@ const TEXT: I18NDeepPartial = {
|
|||||||
auth: {
|
auth: {
|
||||||
signIn: 'Entrar',
|
signIn: 'Entrar',
|
||||||
signOut: 'Sair',
|
signOut: 'Sair',
|
||||||
email: 'Email do Admin',
|
email: 'Email do administrador',
|
||||||
password: 'Senha do Admin',
|
password: 'Senha do administrador',
|
||||||
invalidEmailPassword: 'Email/senha inválidos',
|
invalidEmailPassword: 'Email/senha inválidos',
|
||||||
},
|
},
|
||||||
admin: {
|
admin: {
|
||||||
uploadPhotos: 'Enviar Fotos',
|
uploadPhotos: 'Enviar fotos',
|
||||||
upload: 'Enviar',
|
upload: 'Enviar',
|
||||||
uploadPlural: 'Envios',
|
uploadPlural: 'Envios',
|
||||||
uploading: 'Enviando',
|
uploading: 'Enviando',
|
||||||
update: 'Atualizar',
|
update: 'Atualizar',
|
||||||
updatePlural: 'Atualizações',
|
updatePlural: 'Atualizações',
|
||||||
managePhotos: 'Gerenciar Fotos',
|
managePhotos: 'Gerenciar fotos',
|
||||||
manageCameras: 'Gerenciar Câmeras',
|
manageCameras: 'Gerenciar câmeras',
|
||||||
manageLenses: 'Gerenciar Lentes',
|
manageLenses: 'Gerenciar lentes',
|
||||||
manageTags: 'Gerenciar Tags',
|
manageTags: 'Gerenciar tags',
|
||||||
manageRecipes: 'Gerenciar Receitas',
|
manageRecipes: 'Gerenciar receitas',
|
||||||
batchEdit: 'Editar Fotos em Lote ...',
|
batchEdit: 'Editar fotos em massa ...',
|
||||||
batchEditShort: 'Editar em Lote ...',
|
batchEditShort: 'Editar em massa ...',
|
||||||
batchExitEdit: 'Sair da Edição em Lote',
|
batchExitEdit: 'Sair da edição em massa',
|
||||||
appInsights: 'Insights do App',
|
appInsights: 'Insights do aplicativo',
|
||||||
appConfig: 'Configuração do App',
|
appConfig: 'Configuração da aplicação',
|
||||||
edit: 'Editar',
|
edit: 'Editar',
|
||||||
favorite: 'Favoritar',
|
favorite: 'Favoritar',
|
||||||
unfavorite: 'Remover dos Favoritos',
|
unfavorite: 'Remover dos favoritos',
|
||||||
download: 'Baixar',
|
download: 'Baixar',
|
||||||
sync: 'Sincronizar',
|
sync: 'Sincronizar',
|
||||||
delete: 'Excluir',
|
delete: 'Excluir',
|
||||||
deleteConfirm: (photoTitle: string) =>
|
deleteConfirm: (photoTitle: string) =>
|
||||||
`Tem certeza que deseja excluir "${photoTitle}"?`,
|
`Tem certeza de que deseja excluir "${photoTitle}"?`,
|
||||||
},
|
},
|
||||||
onboarding: {
|
onboarding: {
|
||||||
setupComplete: 'Configuração Concluída!',
|
setupComplete: 'Configuração concluída!',
|
||||||
setupIncomplete: 'Finalizar Configuração',
|
setupIncomplete: 'Finalizar configuração',
|
||||||
setupSignIn: 'Entre para enviar fotos',
|
setupSignIn: 'Entre para enviar fotos',
|
||||||
setupFirstPhoto: 'Adicione sua primeira foto',
|
setupFirstPhoto: 'Adicione sua primeira foto',
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
|
|||||||
126
src/i18n/locales/pt-pt.ts
Normal file
126
src/i18n/locales/pt-pt.ts
Normal file
@ -0,0 +1,126 @@
|
|||||||
|
import { I18NDeepPartial } from '..';
|
||||||
|
import { pt } from 'date-fns/locale';
|
||||||
|
|
||||||
|
const TEXT: I18NDeepPartial = {
|
||||||
|
photo: {
|
||||||
|
photo: 'Fotografia',
|
||||||
|
photoPlural: 'Fotografias',
|
||||||
|
taken: 'Capturado',
|
||||||
|
created: 'Criado',
|
||||||
|
updated: 'Atualizado',
|
||||||
|
copied: 'Link para a fotografia copiada',
|
||||||
|
},
|
||||||
|
category: {
|
||||||
|
camera: 'Máquina Fotográfica',
|
||||||
|
cameraPlural: 'Máquinas Fotográficas',
|
||||||
|
cameraTitle: (camera: string) => `Tirado com ${camera}`,
|
||||||
|
cameraShare: (camera: string) => `Fotografias tiradas com ${camera}`,
|
||||||
|
lens: 'Objetiva',
|
||||||
|
lensPlural: 'Objetivas',
|
||||||
|
tag: 'Etiqueta',
|
||||||
|
tagPlural: 'Etiquetas',
|
||||||
|
taggedPhotos: 'Fotografias etiquetadas',
|
||||||
|
taggedPhrase: (tag: string) => `Fotos etiquetadas com '${tag}'`,
|
||||||
|
taggedFavs: 'Fotografias favoritas',
|
||||||
|
recipe: 'Receita',
|
||||||
|
recipePlural: 'Receitas',
|
||||||
|
recipeShare: (recipe: string) => `Fotografias da receita ${recipe}`,
|
||||||
|
film: 'Filme fotográfico',
|
||||||
|
filmPlural: 'Filmes fotográficos',
|
||||||
|
filmShare: (film: string) => `Fotografias tiradas com ${film}`,
|
||||||
|
focalLength: 'Distância focal',
|
||||||
|
focalLengthPlural: 'Distâncias focais',
|
||||||
|
focalLengthTitle: (focal: string) => `Distância focal ${focal}`,
|
||||||
|
focalLengthShare: (focal: string) => `Fotos tiradas em ${focal}`,
|
||||||
|
},
|
||||||
|
nav: {
|
||||||
|
home: 'Início',
|
||||||
|
feed: 'Feed',
|
||||||
|
grid: 'Grade',
|
||||||
|
admin: 'Menu de administração',
|
||||||
|
search: 'Pesquisar',
|
||||||
|
prev: 'Anterior',
|
||||||
|
prevShort: 'Ant',
|
||||||
|
next: 'Próximo',
|
||||||
|
nextShort: 'Próx',
|
||||||
|
},
|
||||||
|
cmdk: {
|
||||||
|
placeholder: 'Pesquisar fotografias, visualizações, configurações ...',
|
||||||
|
searching: 'A pesquisar ...',
|
||||||
|
noResults: 'Nenhum resultado encontrado',
|
||||||
|
},
|
||||||
|
tooltip: {
|
||||||
|
'35mm': 'Equivalente em 35mm',
|
||||||
|
zoom: 'Aumentar zoom',
|
||||||
|
sharePhoto: 'Partilhar Fotografia',
|
||||||
|
recipeInfo: 'Informações da receita',
|
||||||
|
recipeCopy: 'Copiar texto da receita',
|
||||||
|
download: 'Descarregar ficheiro original',
|
||||||
|
},
|
||||||
|
theme: {
|
||||||
|
theme: 'Tema',
|
||||||
|
system: 'Sistema',
|
||||||
|
light: 'Modo Claro',
|
||||||
|
dark: 'Modo Escuro',
|
||||||
|
},
|
||||||
|
auth: {
|
||||||
|
signIn: 'Entrar',
|
||||||
|
signOut: 'Sair',
|
||||||
|
email: 'Email do administrador',
|
||||||
|
password: 'Senha do administrador',
|
||||||
|
invalidEmailPassword: 'Email/senha inválidos',
|
||||||
|
},
|
||||||
|
admin: {
|
||||||
|
uploadPhotos: 'Enviar fotografias',
|
||||||
|
upload: 'Enviar',
|
||||||
|
uploadPlural: 'Envios',
|
||||||
|
uploading: 'A enviar',
|
||||||
|
update: 'Atualizar',
|
||||||
|
updatePlural: 'Atualizações',
|
||||||
|
managePhotos: 'Gerenciar fotografias',
|
||||||
|
manageCameras: 'Gerenciar máquinas fotográficas',
|
||||||
|
manageLenses: 'Gerenciar objetivas',
|
||||||
|
manageTags: 'Gerenciar etiquetas',
|
||||||
|
manageRecipes: 'Gerenciar receitas',
|
||||||
|
batchEdit: 'Editar fotos em massa ...',
|
||||||
|
batchEditShort: 'Editar em massa ...',
|
||||||
|
batchExitEdit: 'Sair da edição em massa',
|
||||||
|
appInsights: 'Insights do aplicativo',
|
||||||
|
appConfig: 'Configuração da aplicação',
|
||||||
|
edit: 'Editar',
|
||||||
|
favorite: 'Favoritar',
|
||||||
|
unfavorite: 'Remover dos favoritos',
|
||||||
|
download: 'Descarregar',
|
||||||
|
sync: 'Sincronizar',
|
||||||
|
delete: 'Excluir',
|
||||||
|
deleteConfirm: (photoTitle: string) =>
|
||||||
|
`Tens certeza de que deseja excluir "${photoTitle}"?`,
|
||||||
|
},
|
||||||
|
onboarding: {
|
||||||
|
setupComplete: 'Configuração concluída!',
|
||||||
|
setupIncomplete: 'Finalizar configuração',
|
||||||
|
setupSignIn: 'Entre para enviar fotografias',
|
||||||
|
setupFirstPhoto: 'Adicione sua primeira fotografia',
|
||||||
|
// eslint-disable-next-line max-len
|
||||||
|
setupConfig: 'Altere o nome do sítio e outras configurações ao editar as variáveis de ambiente referenciadas em',
|
||||||
|
},
|
||||||
|
misc: {
|
||||||
|
loading: 'A carregar ...',
|
||||||
|
finishing: 'A finalizar ...',
|
||||||
|
uploading: 'A enviar',
|
||||||
|
repo: 'Feito com',
|
||||||
|
copyPhrase: (label: string) => `${label} copiado`,
|
||||||
|
},
|
||||||
|
utility: {
|
||||||
|
paginate: (
|
||||||
|
index: number,
|
||||||
|
count: number,
|
||||||
|
action?: string,
|
||||||
|
) => action
|
||||||
|
? `${action} ${index} de ${count}`
|
||||||
|
: `${index} de ${count}`,
|
||||||
|
},
|
||||||
|
dateLocale: pt,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default TEXT;
|
||||||
Loading…
Reference in New Issue
Block a user