Skip to content

Commit

Permalink
Merge branch 'main' into revert-add-fa-translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomDietrich authored Apr 27, 2024
2 parents 9c7c31b + 3c21c36 commit 895ccfd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ Supported options for the `language` setting:
- `nl` Dutch
- `nn` Norwegian (Nynorsk)
- `pl` Polish
- `pt` Portuguese (Portugal)
- `pt-BR` Portuguese (Brazil)
- `ro` Romanian
- `ru` Russian
Expand Down
11 changes: 11 additions & 0 deletions src/assets/localization/languages/pt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"azimuth": "Azimute",
"dawn": "Amanhecer",
"dusk": "Anoitecer",
"elevation": "Elevação",
"moonrise": "Anoitecer",
"moonset": "Amanhecer",
"noon": "Meio dia",
"sunrise": "Nascer do sol",
"sunset": "Pôr do sol"
}
3 changes: 2 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import nb from './assets/localization/languages/nb.json'
import nl from './assets/localization/languages/nl.json'
import nn from './assets/localization/languages/nn.json'
import pl from './assets/localization/languages/pl.json'
import pt from './assets/localization/languages/pt.json'
import ptBR from './assets/localization/languages/pt-BR.json'
import ro from './assets/localization/languages/ro.json'
import ru from './assets/localization/languages/ru.json'
Expand Down Expand Up @@ -145,6 +146,6 @@ export class Constants {
static readonly MOON_RADIUS = 14

static readonly LOCALIZATION_LANGUAGES: Record<string, THorizonCardI18NKeys> = {
bg, ca, cs, da, de, el, en, es, et, fi, fr, gl, he, hr, hu, is, it, ja, ko, lt, ms, nb, nl, nn, pl, 'pt-BR': ptBR, ro, ru, sk, sl, sv, tr, uk, 'zh-Hans': zh_Hans, 'zh-Hant': zh_Hant
bg, ca, cs, da, de, el, en, es, et, fi, fr, gl, he, hr, hu, is, it, ja, ko, lt, ms, nb, nl, nn, pl, pt, 'pt-BR': ptBR, ro, ru, sk, sl, sv, tr, uk, 'zh-Hans': zh_Hans, 'zh-Hant': zh_Hant
}
}

0 comments on commit 895ccfd

Please sign in to comment.