From 9bd6ff59124fd39c1f1dafa7374995ed0db00f71 Mon Sep 17 00:00:00 2001 From: Patrick Kissling Date: Sun, 8 Sep 2024 14:35:13 +0200 Subject: [PATCH] chore: Add Luxembourgish language --- README.md | 6 +++--- src/localize/languages/lb.json | 33 +++++++++++++++++++++++++++++++++ src/localize/localize.ts | 2 ++ 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 src/localize/languages/lb.json diff --git a/README.md b/README.md index bdc5d085..5efb83af 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ In the above image, the 9° on Thursday represents the low across all of the for The colored portion of the bar represents the range of temperatures that are forecast for that day (so 12° to 21° on Monday). The circle represents the current temperature (16° or roughly midway between 12° and 21° in your case). -*Thanks to @deprecatedcoder for this text from [#143](https://github.com/pkissling/clock-weather-card/issues/143)* +_Thanks to @deprecatedcoder for this text from [#143](https://github.com/pkissling/clock-weather-card/issues/143)_ The basic idea of the forecast bars is to be able to understand the weather trend for the upcoming days in a single glance. @@ -72,7 +72,7 @@ The basic idea of the forecast bars is to be able to understand the weather tren ``` 2. **UI:** Add Lovelace resource [![My Home Assistant](https://my.home-assistant.io/badges/lovelace_resources.svg)](https://my.home-assistant.io/redirect/lovelace_resources). - *(Alternatively go to Settings -> Dashboards -> Resources -> Add Resource)* + _(Alternatively go to Settings -> Dashboards -> Resources -> Add Resource)_ ```yaml URL: /hacsfiles/clock-weather-card/clock-weather-card.js @@ -152,4 +152,4 @@ aqi_sensor: sensor.air_quality_index ## Footnotes [^1]: Theme used: [lovelace-ios-themes](https://github.com/basnijholt/lovelace-ios-themes). -[^2]: Supported languages: `bg`, `ca`, `cs` `da`, `de`, `el`,`en`, `es`, `et`, `fi`, `fr`, `he`, `hu`, `id`, `is`, `it`, `ko`, `lt`, `nb`, `nl`, `pl`, `pt`, `pt-BR`, `ro`, `ru`, `sk`, `sl`, `sr`, `sr-Latn`, `sv`, `th`, `tr`, `uk`, `ur`, `vi`, `zh-CN`, `zh-TW` +[^2]: Supported languages: `bg`, `ca`, `cs` `da`, `de`, `el`,`en`, `es`, `et`, `fi`, `fr`, `he`, `hu`, `id`, `is`, `it`, `ko`, `lb`, `lt`, `nb`, `nl`, `pl`, `pt`, `pt-BR`, `ro`, `ru`, `sk`, `sl`, `sr`, `sr-Latn`, `sv`, `th`, `tr`, `uk`, `ur`, `vi`, `zh-CN`, `zh-TW` diff --git a/src/localize/languages/lb.json b/src/localize/languages/lb.json new file mode 100644 index 00000000..eabde935 --- /dev/null +++ b/src/localize/languages/lb.json @@ -0,0 +1,33 @@ +{ + "weather": { + "clear-night": "kloer", + "cloudy": "wollekeg", + "fog": "Niwwel", + "hail": "Knëppelsteng", + "lightning": "Donnerwieder", + "lightning-rainy": "Donnerwieder", + "partlycloudy": "deels wollekeg", + "pouring": "staarke Reen", + "rainy": "Reen", + "snowy": "Schnéi", + "snowy-rainy": "Schnéireen", + "sunny": "sonneg", + "windy": "lëfteg", + "windy-variant": "staarke Wand", + "exceptional": "Onwieder" + }, + "day": { + "1": "Mé", + "2": "Dë", + "3": "Më", + "4": "Do", + "5": "Fr", + "6": "Sa", + "7": "So" + }, + "misc": { + "aqi": "AQI", + "humidity": "Loftfiichtegkeet", + "feels-like": "Gefillt" + } +} diff --git a/src/localize/localize.ts b/src/localize/localize.ts index 75b828ba..089f1b60 100644 --- a/src/localize/localize.ts +++ b/src/localize/localize.ts @@ -15,6 +15,7 @@ import * as id from './languages/id.json' import * as is from './languages/is.json' import * as it from './languages/it.json' import * as ko from './languages/ko.json' +import * as lb from './languages/lb.json' import * as lt from './languages/lt.json' import * as nb from './languages/nb.json' import * as nl from './languages/nl.json' @@ -55,6 +56,7 @@ const languages: any = { is, it, ko, + lb, lt, nb, nl,