Skip to content

Added danish translation #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ When you discover any bugs please open an [issue](https://github.com/mattieha/sl

This card supports translations. Please, help to add more translations and improve existing ones. Here's a list of supported languages:

- Danish
- English
- French
- German
Expand Down
62 changes: 62 additions & 0 deletions src/localize/languages/da.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"common": {
"version": "v",
"invalid_configuration": "Ugyldig konfiguration",
"show_warning": "Vis advarsel",
"show_error": "Vis fejl"
},
"tabs": {
"general": {
"title": "Generelt",
"entity": "Entitet (påkrævet)",
"name": "Navn (valgfri)",
"show_name": "Vis navn?",
"show_state": "Vis tilstand?",
"compact": "Kompakt?"
},
"icon": {
"title": "Ikon",
"icon": "Ikon (valgfri)",
"show_icon": "Vis ikon?",
"use_state_color": "Brug tilstandsfarve?",
"tap_action": "Tryk aktion"
},
"slider": {
"title": "Slider",
"direction": "Retning",
"background": "Baggrund",
"use_brightness": "Brug lysstyrke?",
"show_track": "Vis spor?",
"toggle_on_click": "Brug som knap (deaktivér slider)",
"force_square": "Tving kvadrat?"
},
"action_button": {
"title": "Aktionsknap",
"mode": "Tilstand",
"icon": "Ikon",
"show_button": "Vis knap?",
"show_spinner": "Vis spinner?",
"tap_action": "Tryk aktion"
}
},
"state": {
"off": "Slukket",
"on": "Tændt"
},
"direction": {
"left-right": "Venstre til højre",
"top-bottom": "Top til bund",
"bottom-top": "bund til top"
},
"background": {
"striped": "Stribet",
"gradient": "Gradient",
"solid": "Solid",
"triangle": "Trekant",
"custom": "Brugerdefineret"
},
"mode": {
"toggle": "Skifter",
"custom": "Brugerdefineret"
}
}
2 changes: 2 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as en from './languages/en.json';
import * as da from './languages/da.json';
import * as de from './languages/de.json';
import * as fr from './languages/fr.json';
import * as he from './languages/he.json';
Expand All @@ -13,6 +14,7 @@ import * as ko from './languages/ko.json';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const languages: any = {
en: en,
da: da,
de: de,
fr: fr,
he: he,
Expand Down