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

Add Norwegian translations #716

Merged
Merged
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 @@ -579,7 +579,7 @@ Change the language of user-facing copy in leaflet-geoman
map.pm.setLang('de');
```

Currently available languages are `en`, `de`, `it`, `ru`, `ro`, `es`, `fr`, `pt_br`, `id`, `zh`, `zh_tw`, `nl`, `el`, `pl`, `sv`, `da` and `hu`.
Currently available languages are `en`, `de`, `it`, `ru`, `ro`, `es`, `fr`, `pt_br`, `id`, `zh`, `zh_tw`, `nl`, `el`, `pl`, `sv`, `da`, `hu` and `no`.
To add translations to the plugin, you can add [a translation file](src/assets/translations) via Pull Request.

You can also provide your own custom translations.
Expand Down
4 changes: 3 additions & 1 deletion src/assets/translations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import sv from './sv.json';
import el from './el.json';
import hu from './hu.json';
import da from './da.json';
import no from './no.json';

export default {
en,
Expand All @@ -35,5 +36,6 @@ export default {
sv,
el,
hu,
da
da,
no
};
32 changes: 32 additions & 0 deletions src/assets/translations/no.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"tooltips": {
"placeMarker": "Klikk for å plassere punkt",
"firstVertex": "Klikk for å plassere første punkt",
"continueLine": "Klikk for å tegne videre",
"finishLine": "Klikk på et eksisterende punkt for å fullføre",
"finishPoly": "Klikk første punkt for å fullføre",
"finishRect": "Klikk for å fullføre",
"startCircle": "Klikk for å sette sirkel midtpunkt",
"finishCircle": "Klikk for å fullføre sirkel",
"placeCircleMarker": "Klikk for å plassere sirkel"
},
"actions": {
"finish": "Fullfør",
"cancel": "Kanseller",
"removeLastVertex": "Fjern forrige punkt"
},
"buttonTitles": {
"drawMarkerButton": "Tegn Punkt",
"drawPolyButton": "Tegn Flate",
"drawLineButton": "Tegn Linje",
"drawCircleButton": "Tegn Sirkel",
"drawRectButton": "Tegn rektangel",
"editButton": "Rediger Objekter",
"dragButton": "Dra Objekter",
"cutButton": "Kutt Objekter",
"deleteButton": "Fjern Objekter",
"drawCircleMarkerButton": "Tegn sirkel-punkt",
"snappingButton": "Fest dratt punkt til andre objekter og punkt",
"pinningButton": "Pin delte punkt sammen"
}
}