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

Added Norwegian Language #39

Open
wants to merge 1 commit into
base: master
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 @@ -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

Expand Down
17 changes: 17 additions & 0 deletions src/localize/languages/no.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
2 changes: 2 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -19,6 +20,7 @@ const languages: any = {
nl: nl,
pt: pt,
sv: sv,
no: no,
};

export const CARD_LANGUAGES = [...Object.keys(languages), ''].sort();
Expand Down