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 fi.json #21

Open
wants to merge 2 commits 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +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) |

| Finnish | `fi` | | [@PolarFox](https://github.com/PolarFox) |
#### How to add a language

If you wish to add a language please follow these steps:
Expand Down
17 changes: 17 additions & 0 deletions src/localize/languages/fi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"common": {
"version": "Versio",
"invalid_configuration": "Väärä konfikuraatio",
"show_warning": "Näytä varoitus",
"show_error": "Näytä virhe",
"uv_index": "UV Indeksi",
"uv_risk": "UV Riski"
},
"uv_levels": {
"low": "Matala",
"moderate": "Kohtalainen",
"high": "Korkea",
"very_high": "Erittäin korkea",
"extreme": "Äärimmäinen"
}
}
2 changes: 2 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as cs from "./languages/cs.json";
import * as de from './languages/de.json';
import * as fi from "./languages/fi.json";
import * as en from './languages/en.json';
import * as fr from './languages/fr.json';
import * as hu from './languages/hu.json';
Expand All @@ -12,6 +13,7 @@ import * as sv from "./languages/sv.json";
const languages: any = {
cs: cs,
de: de,
fi: fi,
en: en,
fr: fr,
hu: hu,
Expand Down