Skip to content

Commit

Permalink
Merge branch 'master' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
t1gr0u authored May 8, 2023
2 parents c7459e4 + afe6908 commit c038b14
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ The following languages are supported:

| Language | Yaml value | Supported | Translated by |
| --------- | ---------- | --------- | ----------------------------------------------------------------------------------- |
| Dutch | `nl` | v1.2.0 | [@WoBBeLNL](https://github.com/WoBBeLnl) |
| English | `en` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) |
| French | `fr` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) |
| German | `de` | v1.0.0 | [@t1gr0u](https://github.com/t1gr0u) |
| Portuguese| `pt` | v1.0.0 | [@ViPeR5000](https://github.com/viper5000) |
| Italian | `it` | v1.2.0 | [@SiriosDev](https://github.com/SiriosDev) |
| Portuguese| `pt` | v1.2.0 | [@ViPeR5000](https://github.com/viper5000) |


## Thanks to
Expand Down
6 changes: 3 additions & 3 deletions src/localize/languages/de.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"common": {
"version": "Version",
"invalid_configuration": "Invalid configuration",
"show_warning": "Show Warning",
"show_error": "Show Error",
"invalid_configuration": "Ungültige Konfiguration",
"show_warning": "Warnung anzeigen",
"show_error": "Fehler anzeigen",
"uv_index": "UV-Index",
"uv_risk": "Risikostufe"
},
Expand Down
17 changes: 17 additions & 0 deletions src/localize/languages/it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"common": {
"version": "Versione",
"invalid_configuration": "Configurazione non valida",
"show_warning": "Mostra Avviso",
"show_error": "Mostra Errore",
"uv_index": "Indice UV",
"uv_risk": "Rischio UV"
},
"uv_levels": {
"low": "Basso",
"moderate": "Moderato",
"high": "Alto",
"very_high": "Altissimo",
"extreme": "Estremo"
}
}
17 changes: 17 additions & 0 deletions src/localize/languages/nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"common": {
"version": "Versie",
"invalid_configuration": "Ongeldige configuratie",
"show_warning": "Toon waarschuwing",
"show_error": "Toon foutmelding",
"uv_index": "UV index",
"uv_risk": "UV risico"
},
"uv_levels": {
"low": "Laag",
"moderate": "Matig",
"high": "Hoog",
"very_high": "Zeer hoog",
"extreme": "Extreem"
}
}
17 changes: 17 additions & 0 deletions src/localize/languages/pt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"common": {
"version": "Versão",
"invalid_configuration": "Configuração Invalida",
"show_warning": "Mostrar aviso",
"show_error": "Mostrar Erro",
"uv_index": "Índice UV",
"uv_risk": "Risco UV"
},
"uv_levels": {
"low": "Baixo",
"moderate": "Moderado",
"high": "Alto",
"very_high": "Muito Alto",
"extreme": "Extremo"
}
}
6 changes: 6 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import * as de from './languages/de.json';
import * as en from './languages/en.json';
import * as fr from './languages/fr.json';
import * as pt from './languages/pt.json';
import * as nl from './languages/nl.json';
import * as it from "./languages/it.json";

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const languages: any = {
de: de,
en: en,
fr: fr,
pt: pt,
nl: nl,
it: it,
};

export function localize(string: string, search = '', replace = ''): string {
Expand Down

0 comments on commit c038b14

Please sign in to comment.