Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ur.json #136

Merged
merged 4 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,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
}
}
Loading