Skip to content

Commit

Permalink
Add Malay (ms) translation (#51)
Browse files Browse the repository at this point in the history
* Added Malay[ms] translation

* Update constants.ts

* Update README.md

* Update constants.ts

---------

Co-authored-by: Edward Firmo <[email protected]>
Co-authored-by: Thomas Dietrich <[email protected]>
  • Loading branch information
3 people authored Jul 3, 2023
1 parent 5fcee1d commit 4561fd2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
13 changes: 13 additions & 0 deletions src/assets/localization/languages/ms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"azimuth": "Azimuth",
"dawn": "Fajar",
"dusk": "Senja",
"elevation": "Ketinggian",
"noon": "Tengahari",
"sunrise": "Fajar",
"sunset": "Senja",
"errors": {
"SunIntegrationNotFound": "Integrasi Sun tidak ditemui."
}
}

3 changes: 2 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -87,7 +88,7 @@ export class Constants {
}

static readonly LOCALIZATION_LANGUAGES: Record<string, THorizonCardI18NKeys> = {
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
Expand Down

0 comments on commit 4561fd2

Please sign in to comment.