diff --git a/README.md b/README.md index 77fbbad..5c4349c 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Note: If you get an error similar to this `Custom element doesn't exist` you wil | timeFormat | `'12h'`/`'24h'` | Displayed time format | Locale based on Home assistant language | | title | `string` | Card title | Doesn't display a title by default | | -(1) Supported languages: `da`, `de`, `en`, `es`, `et`, `fi`, `fr`, `hu`, `it`, `nl`, `pl`, `pt-BR`, `ru`, `sl`, `sv` +(1) Supported languages: `ca`, `da`, `de`, `en`, `es`, `et`, `fi`, `fr`, `hu`, `it`, `nl`, `pl`, `pt-BR`, `ru`, `sl`, `sv` ## Known issues -- Home assistant seems to provide next events instead today's one +- Home assistant seems to provide next events instead today's one diff --git a/src/assets/localization/languages/ca.json b/src/assets/localization/languages/ca.json new file mode 100644 index 0000000..7b4c22a --- /dev/null +++ b/src/assets/localization/languages/ca.json @@ -0,0 +1,12 @@ +{ + "Azimuth": "Azimut", + "Dawn": "Alba", + "Dusk": "Capvespre", + "Elevation": "ElevaciĆ³", + "Noon": "Migdia solar", + "Sunrise": "Sortida del sol", + "Sunset": "Posta del sol", + "errors": { + "SunIntegrationNotFound": "Sun integration not found." + } +} diff --git a/src/constants.ts b/src/constants.ts index 746463c..25b3a0a 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,3 +1,4 @@ +import ca from './assets/localization/languages/ca.json' import da from './assets/localization/languages/da.json' import de from './assets/localization/languages/de.json' import en from './assets/localization/languages/en.json' @@ -33,7 +34,7 @@ export class Constants { static readonly HORIZON_Y = 108 static readonly LOCALIZATION_LANGUAGES: Record = { - da, de, en, es, et, fi, fr, hu, it, nl, pl, 'pt-BR': ptBR, ru, sl, sv + ca, da, de, en, es, et, fi, fr, hu, it, nl, pl, 'pt-BR': ptBR, ru, sl, sv } static readonly SUN_RADIUS = 17 }