Skip to content

Commit

Permalink
Use ISO language codes instead of country codes
Browse files Browse the repository at this point in the history
  • Loading branch information
CM000n committed Feb 14, 2022
1 parent ca8bebd commit e6cb9d1
Show file tree
Hide file tree
Showing 59 changed files with 17 additions and 17 deletions.
26 changes: 13 additions & 13 deletions custom_components/ui_lovelace_minimalist/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
_LOGGER: logging.Logger = logging.getLogger(__name__)

LANGUAGES = {
"Czech": "CS",
"Danish": "DA",
"Dutch": "NL",
"English (GB)": "EN",
"French": "FR",
"German": "DE",
"Italian": "IT",
"Polish": "PL",
"Portuguese": "PT",
"Slovak": "SK",
"Spanish": "ES",
"Swedish": "SE",
"Norwegian": "NO",
"Czech": "cs",
"Danish": "da",
"German": "de",
"English (GB)": "en",
"Spanish": "es",
"French": "fr",
"Italian": "it",
"Dutch": "nl",
"Norwegian": "no",
"Polish": "pl",
"Portuguese": "pt",
"Slovak": "sk",
"Swedish": "sv",
}


Expand Down
8 changes: 4 additions & 4 deletions custom_components/ui_lovelace_minimalist/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
CONF_LANGUAGES = [
"Czech",
"Danish",
"Dutch",
"German",
"English (GB)",
"Spanish",
"French",
"German",
"Italian",
"Dutch",
"Norwegian",
"Polish",
"Portuguese",
"Slovak",
"Spanish",
"Swedish",
"Norwegian",
]
CONF_SIDEPANEL_ENABLED = "sidepanel_enabled"
CONF_SIDEPANEL_TITLE = "sidepanel_title"
Expand Down

0 comments on commit e6cb9d1

Please sign in to comment.