Skip to content

Commit

Permalink
Merge pull request #184 from lafriks-fork/feat/lv
Browse files Browse the repository at this point in the history
Add Latvian language translations
  • Loading branch information
KartoffelToby authored Nov 3, 2024
2 parents d6b27ae + d632648 commit 86abbcd
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ What we have so far:
- fr
- hu
- it
- lv
- nl
- no
- pl
Expand Down
1 change: 1 addition & 0 deletions project.inlang/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"fr",
"hu",
"it",
"lv",
"nl",
"no",
"pl",
Expand Down
28 changes: 28 additions & 0 deletions src/localize/languages/lv.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"common": {
"version": "versijas",
"current": "pašreizējais"
},
"editor": {
"card": {
"climate": {
"disable_window": "Atspējot logu indikatoru",
"disable_summer": "Atspējot vasaras režīmu",
"disable_eco": "Atspējot ekonomisko režīmu",
"disable_heat": "Atspējot sildīšanas režīmu",
"disable_off": "Atspējot izslēgšanu",
"disable_menu": "Atspējot izvēlni",
"disable_battery_warning": "Atspējot baterijas brīdinājumu",
"disable_buttons": "Atspējot plus/mīnus pogas",
"eco_temperature": "Eko režīma temperatūra",
"set_current_as_main": "Apmainīt pašreizējo un mērķa temperatūru vietām"
}
}
},
"extra_states": {
"window_open": "Atvērts logs",
"night_mode": "Nakts režīms",
"eco": "Eko režīms",
"summer": "Vasaras režīms"
}
}
2 changes: 2 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import * as bg from './languages/bg.json';
import * as fi from './languages/fi.json';
import * as ro from './languages/ro.json';
import * as ca from './languages/ca.json';
import * as lv from './languages/lv.json';
import { HomeAssistant } from '../ha';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down Expand Up @@ -52,6 +53,7 @@ const languages: any = {
fi: fi,
ro: ro,
ca: ca,
lv: lv,
};
const DEFAULT_LANG = "en";

Expand Down

0 comments on commit 86abbcd

Please sign in to comment.