Skip to content

Commit

Permalink
Add Italian translation (MrBartusek#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmazz authored and BartEngelen committed Jan 21, 2022
1 parent e7faa49 commit cf886e8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ This card supports translations. Please, help to add more translations and impro
- Deutsch (German)
- Eesti (Estonian)
- Français (French)
- Italiano (Italian)
- Nederlands (Dutch)
- Polski (Polish)
- [_Your language?_](./CONTRIBUTING.md#how-to-add-translation)
Expand Down
4 changes: 3 additions & 1 deletion src/localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import * as de from './translations/de.json';
import * as en from './translations/en.json';
import * as fr from './translations/fr.json';
import * as it from './translations/it.json';
import * as nl from './translations/nl.json';
import * as pl from './translations/pl.json';
import * as et from './translations/et.json';
Expand All @@ -14,7 +15,8 @@ var languages = {
nl,
pl,
et,
fr
fr,
it
};

const DEFAULT_LANG = 'en';
Expand Down
30 changes: 30 additions & 0 deletions src/translations/it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"common": {
"name": "Scheda Meteoalarm",
"description": "La scheda Meteoalarm ti informa degli eventi meteorologici in corso.",
"not_available": "Meteoalarm non è disponibile"
},
"error": {
"missing_entity": "È necessario specificare un'entità!"
},
"events": {
"no_warnings": "Nessun allarme",
"wind": "vento",
"snow_ice": "neve/ghiaccio",
"thunderstorms": "temporali",
"fog": "nebbia",
"hight_temperature": "alte temperature",
"low_temperature": "basse temperature",
"coastal_event": "eventi costieri",
"forest_fire": "incendi boschivi",
"avalanches": "valanghe",
"rain": "pioggia",
"flood": "inondazioni",
"rain_flood": "acquazzoni"
},
"messages": {
"yellow": "Allarme Giallo {0}",
"orange": "Allarme Arancione {0}",
"red": "Allarme Rosso {0}"
}
}

0 comments on commit cf886e8

Please sign in to comment.