Skip to content

Commit

Permalink
Add persian (fa) translation (#107)
Browse files Browse the repository at this point in the history
* Updated README.md in order to include Persian language

Added translation to Persian - Fa language

* Add Persian (fa) language into constants.ts

Added translation to Persian language

* Added translation to Persian language

Added translation to Persian language

* added Persian (fa) Translation 

added Persian (fa) Translation

---------

Co-authored-by: Thomas Dietrich <Thomas@Nurzen.de>
  • Loading branch information
alirezadigi and ThomDietrich authored Apr 23, 2024
1 parent 270815c commit 433f3e6
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 @@ -154,6 +154,7 @@ Supported options for the `language` setting:
- `en` English
- `es` Spanish
- `et` Estonian
- `fa` Persian
- `fi` Finnish
- `fr` French
- `he` Hebrew
Expand Down
11 changes: 11 additions & 0 deletions src/assets/localization/languages/fa.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"azimuth": "جهت",
"dawn": "سحرگاه",
"dusk": "شامگاه",
"elevation": "ارتفاع",
"moonrise": "طلوع ماه",
"moonset": "غروب ماه",
"noon": "ظهر",
"sunrise": "طلوع آفتاب",
"sunset": "غروب آفتاب"
}
3 changes: 2 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import el from './assets/localization/languages/el.json'
import en from './assets/localization/languages/en.json'
import es from './assets/localization/languages/es.json'
import et from './assets/localization/languages/et.json'
import fa from './assets/localization/languages/fa.json'
import fi from './assets/localization/languages/fi.json'
import fr from './assets/localization/languages/fr.json'
import he from './assets/localization/languages/he.json'
Expand Down Expand Up @@ -144,6 +145,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, 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, fa, fi, fr, 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
}
}

0 comments on commit 433f3e6

Please sign in to comment.