diff --git a/README.md b/README.md index fd84088..da2896d 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ Supported options for the `language` setting: - `ja` Japanese - `it` Italian - `lt` Lithuanian +- `ms` Malay - `nb` Norwegian (Bokmål) - `nl` Dutch - `nn` Norwegian (Nynorsk) diff --git a/src/assets/localization/languages/ms.json b/src/assets/localization/languages/ms.json new file mode 100644 index 0000000..0f97bdd --- /dev/null +++ b/src/assets/localization/languages/ms.json @@ -0,0 +1,13 @@ +{ + "azimuth": "Azimuth", + "dawn": "Fajar", + "dusk": "Senja", + "elevation": "Ketinggian", + "noon": "Tengahari", + "sunrise": "Fajar", + "sunset": "Senja", + "errors": { + "SunIntegrationNotFound": "Integrasi Sun tidak ditemui." + } + } + \ No newline at end of file diff --git a/src/constants.ts b/src/constants.ts index 9d89c54..657011a 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -15,6 +15,7 @@ import is from './assets/localization/languages/is.json' import it from './assets/localization/languages/it.json' import ja from './assets/localization/languages/ja.json' import lt from './assets/localization/languages/lt.json' +import ms from './assets/localization/languages/ms.json' import nb from './assets/localization/languages/nb.json' import nl from './assets/localization/languages/nl.json' import nn from './assets/localization/languages/nn.json' @@ -87,7 +88,7 @@ export class Constants { } static readonly LOCALIZATION_LANGUAGES: Record = { - bg, ca, cs, da, de, en, es, et, fi, fr, he, hr, hu, is, it, ja, lt, 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, en, es, et, fi, fr, he, hr, hu, is, it, ja, lt, ms, nb, nl, nn, pl, 'pt-BR': ptBR, ro, ru, sk, sl, sv, tr, uk, 'zh-Hans': zh_Hans, 'zh-Hant': zh_Hant } static readonly FALLBACK_LOCALIZATION = en