Skip to content

Commit

Permalink
Add Urdu translation (#136)
Browse files Browse the repository at this point in the history
* Create ur.json

added Urdu translation

* Update ur.json

updated urdu translation

* Update constants.ts

* Update README.md

---------

Co-authored-by: Thomas Dietrich <[email protected]>
  • Loading branch information
yousaf465 and ThomDietrich authored Oct 29, 2024
1 parent 71522ca commit 65ad43b
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 @@ -188,6 +188,7 @@ Supported options for the `language` setting:
- `sv` Swedish
- `tr` Turkish
- `uk` Ukrainian
- `ur` Urdu
- `zh-Hans` Chinese, simplified
- `zh-Hant` Chinese, traditional

Expand Down
11 changes: 11 additions & 0 deletions src/assets/localization/languages/ur.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 @@ -32,6 +32,7 @@ import sl from './assets/localization/languages/sl.json'
import sv from './assets/localization/languages/sv.json'
import tr from './assets/localization/languages/tr.json'
import uk from './assets/localization/languages/uk.json'
import ur from './assets/localization/languages/ur.json'
import zh_Hans from './assets/localization/languages/zh-Hans.json'
import zh_Hant from './assets/localization/languages/zh-Hant.json'
import {
Expand Down Expand Up @@ -146,6 +147,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, '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, ur, 'zh-Hans': zh_Hans, 'zh-Hant': zh_Hant
}
}

0 comments on commit 65ad43b

Please sign in to comment.