Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #50 from AitorDB/feature/set-up-new-languages
Browse files Browse the repository at this point in the history
Set up new languages
  • Loading branch information
AitorDB authored May 20, 2021
2 parents c70c60d + b9b5d8b commit e49ff08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | |

(<sup>1</sup>) Supported languages: `da`, `de`, `en`, `es`, `et`, `fi`, `fr`, `hu`, `it`, `nl`, `pt-BR`, `ru`, `sl`, `sv`
(<sup>1</sup>) Supported languages: `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
3 changes: 2 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import fr from './assets/localization/languages/fr.json'
import hu from './assets/localization/languages/hu.json'
import it from './assets/localization/languages/it.json'
import nl from './assets/localization/languages/nl.json'
import pl from './assets/localization/languages/pl.json'
import ptBR from './assets/localization/languages/pt-BR.json'
import ru from './assets/localization/languages/ru.json'
import sl from './assets/localization/languages/sl.json'
Expand All @@ -32,7 +33,7 @@ export class Constants {

static readonly HORIZON_Y = 108
static readonly LOCALIZATION_LANGUAGES: Record<string, TSunCardTexts> = {
da, de, en, es, et, fi, fr, hu, it, nl, 'pt-BR': ptBR, ru, sl, sv
da, de, en, es, et, fi, fr, hu, it, nl, pl, 'pt-BR': ptBR, ru, sl, sv
}
static readonly SUN_RADIUS = 17
}

0 comments on commit e49ff08

Please sign in to comment.