diff --git a/README.md b/README.md index 9c998ba..761ec8a 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,7 @@ The following languages are supported: | Italian | `it` | v1.2.0 | [@SiriosDev](https://github.com/SiriosDev) | | Portuguese| `pt` | v1.2.0 | [@ViPeR5000](https://github.com/viper5000) | | Swedish | `sv` | v1.2.1 | [@el97](https://github.com/el97) | +| Norwegian | `no` | v1.2.1 | [@laxzzi](https://github.com/laxzzi) | #### How to add a language diff --git a/src/localize/languages/no.json b/src/localize/languages/no.json new file mode 100644 index 0000000..1706f43 --- /dev/null +++ b/src/localize/languages/no.json @@ -0,0 +1,17 @@ +{ + "common": { + "version": "Versjon", + "invalid_configuration": "Ugyldig konfigurasjon", + "show_warning": "Vis advarsel", + "show_error": "Vis feilmelding", + "uv_index": "UV-indeks", + "uv_risk": "UV-risiko" + }, + "uv_levels": { + "low": "Lav", + "moderate": "Moderat", + "high": "Høy", + "very_high": "Svært høy", + "extreme": "Ekstrem" + } + } \ No newline at end of file diff --git a/src/localize/localize.ts b/src/localize/localize.ts index 15c5f0a..8053fa2 100644 --- a/src/localize/localize.ts +++ b/src/localize/localize.ts @@ -7,6 +7,7 @@ import * as it from "./languages/it.json"; import * as nl from './languages/nl.json'; import * as pt from './languages/pt.json'; import * as sv from "./languages/sv.json"; +import * as no from "./languages/no.json"; // eslint-disable-next-line @typescript-eslint/no-explicit-any const languages: any = { @@ -19,6 +20,7 @@ const languages: any = { nl: nl, pt: pt, sv: sv, + no: no, }; export const CARD_LANGUAGES = [...Object.keys(languages), ''].sort();