Skip to content

Commit

Permalink
Merge pull request #200 from hudsonbrendon/patch-1
Browse files Browse the repository at this point in the history
Create pt-BR.json
  • Loading branch information
Nyaran authored Jan 25, 2025
2 parents cbd7ef6 + e46e038 commit 6e90fe2
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
53 changes: 53 additions & 0 deletions src/localize/languages/pt-BR.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"common": {
"version": "Versão"
},
"config": {
"invalid": "Configuração inválida",
"header_title": "Título",
"sensor_name": "Nome do sensor",
"display_mode": "Modo de exibição",
"display_mode_label": {
"full": "Completo",
"compact": "Compacto"
},
"wrong_display_mode": "'display_mode' aceita apenas 'compact' e 'full' como valor",
"list_mode": "Modo de lista",
"list_mode_label": {
"full": "Completo",
"packages": "Pacotes",
"links": "Links"
},
"wrong_list_mode": "'list_mode' aceita apenas 'full', 'packages' e 'links' como valor",
"default_instance": "Instância padrão",
"hide_title": "Ocultar título",
"hide_instance": "Ocultar seletor de instância",
"hide_play": "Ocultar botão de iniciar",
"hide_pause": "Ocultar botão de pausar",
"hide_stop": "Ocultar botão de parar",
"hide_speed_limit": "Ocultar botão de limite de velocidade"
},
"status": {
"no_sensor": "Nenhum sensor",
"stopped": "Parado",
"downloading": "Baixando",
"stopping": "Parando",
"finished": "Concluído",
"running": "Executando",
"paused": "Pausado",
"idle": "Ocioso"
},
"downloads": {
"no_downloads": "Sem downloads"
},
"error": {
"no_sensor_packages": "O sensor 'packages' não está presente ou não está habilitado. Habilite-o em seu próprio serviço.",
"no_sensor_links": "O sensor 'links' não está presente ou não está habilitado. Habilite-o em seu próprio serviço."
},
"actions": {
"play": "Iniciar Downloads",
"pause": "Pausar Downloads",
"stop": "Parar Downloads",
"speed_limit": "Limite de Velocidade"
}
}
3 changes: 3 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import en from './languages/en.json' with { type: 'json' };
import es from './languages/es.json' with { type: 'json' };
import pt from './languages/pt.json' with { type: 'json' };
import ptBR from './languages/pt-BR.json' with { type: 'json' };

import { LovelaceCard } from 'custom-card-helpers';

interface LanguageEntry {
Expand All @@ -10,6 +12,7 @@ const languages: Record<string, LanguageEntry> = {
en,
es,
pt,
ptBR,
};

function getLanguage(): keyof typeof languages {
Expand Down

0 comments on commit 6e90fe2

Please # to comment.