diff --git a/README.md b/README.md index 40e2bf7..1966102 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/assets/localization/languages/ur.json b/src/assets/localization/languages/ur.json new file mode 100644 index 0000000..31ed9b2 --- /dev/null +++ b/src/assets/localization/languages/ur.json @@ -0,0 +1,11 @@ +{ + "azimuth": "سمت الراسی", + "dawn": "سویرا", + "dusk": "شام", + "elevation": "بلندی", + "moonrise": "طلوع قمر", + "moonset": "غروب قمر", + "noon": "دوپہر", + "sunrise": "طلوع آفتاب", + "sunset": "غروب آفتاب" +} diff --git a/src/constants.ts b/src/constants.ts index 2fe134e..561d4bf 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -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 { @@ -146,6 +147,6 @@ export class Constants { static readonly MOON_RADIUS = 14 static readonly LOCALIZATION_LANGUAGES: Record = { - 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 } }