Skip to content
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

Integrated the Italian language #56

Merged
merged 1 commit into from
Jul 9, 2021
Merged
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 @@ -188,6 +188,7 @@ This card supports translations. Please, help to add more translations and impro
- Deutsch (German)
- Català (Catalan)
- Русский (Russian)
- Italiano (Italian)
- [_Your language?_][add-translation]

## Supported models
Expand Down
2 changes: 2 additions & 0 deletions src/localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import * as zh from './translations/zh.json';
import * as de from './translations/de.json';
import * as ca from './translations/ca.json';
import * as ru from './translations/ru.json';
import * as it from './translations/it.json';

var languages = {
en,
Expand All @@ -25,6 +26,7 @@ var languages = {
de,
ca,
ru,
it,
};

const DEFAULT_LANG = 'en';
Expand Down
38 changes: 38 additions & 0 deletions src/translations/it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"common": {
"name": "Card del purificatore",
"description": "La card del purificatore ti permette di controllare il tuo purificatore intelligente.",
"not_available": "L'entità non è disponibile",
"toggle_power": "Accendi/Spegni"
},
"state": {
"on": "Acceso",
"off": "Spento"
},
"speed": {
"Auto": "Auto",
"Silent": "Silenzioso",
"Favorite": "Preferito",
"Fan": "Ventola"
},
"error": {
"missing_entity": "É necessario specificare l'entità",
"xiaomi_miio_level_without_speed": "É richiesto l'inserimento della velocità insieme alla proprietà xiaomi_miio_favorite_level!"
},
"editor": {
"entity": "Entità (richiesto)",
"compact_view": "Vista compatta",
"compact_view_aria_label_on": "Attiva la visualizzazione compatta",
"compact_view_aria_label_off": "Disattiva la visualizzazione compatta",
"show_name": "Mostra nome",
"show_name_aria_label_on": "Visualizza nome del purificatore",
"show_name_aria_label_off": "Non visualizzare il nome del purificatore",
"show_state": "Mostra stato",
"show_state_aria_label_on": "Visualizza lo stato del purificatore",
"show_state_aria_label_off": "Non visualizzarelo stato del purificatore",
"show_toolbar": "Mostra barra degli strumenti",
"show_toolbar_aria_label_on": "Visualizza barra degli strumenti",
"show_toolbar_aria_label_off": "Non visualizzare la barra degli strumenti",
"code_only_note": "Nota: le opzioni di impostazione delle azioni e delle statistiche sono disponibili esclusivamente utilizzando l'editor di codice."
}
}