Skip to content

Commit

Permalink
feat: Norwegian language support (#1645)
Browse files Browse the repository at this point in the history
  • Loading branch information
olagrasli authored Jan 9, 2024
1 parent a2055a4 commit 69e14bc
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RELEASING:
- info on duration format in parameter description ([#1504](https://github.com/GIScience/openrouteservice/pull/1504))
- YML configuration ([#1506](https://github.com/GIScience/openrouteservice/pull/1506))
- new backend documentation using VitePress([#1617](https://github.com/GIScience/openrouteservice/pull/1617))
- support for Norwegian language ([#1645](https://github.com/GIScience/openrouteservice/pull/1645))

### Changed
- include transfers and fare properties only in PT responses ([#1586](https://github.com/GIScience/openrouteservice/pull/1586))
Expand Down
2 changes: 2 additions & 0 deletions ors-engine/src/main/java/org/heigit/ors/routing/APIEnums.java
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ public enum Languages {
NE_NP("ne-np"),
NL("nl"),
NL_NL("nl-nl"),
NB("nb"),
NB_NO("nb-no"),
PL("pl"),
PL_PL("pl-pl"),
PT("pt"),
Expand Down
107 changes: 107 additions & 0 deletions ors-engine/src/main/resources/resources/locales/ors_nb-NO.resources
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"instructions": {
"numerals": {
"1": "1.",
"2": "2.",
"3": "3.",
"4": "4.",
"5": "5.",
"6": "6.",
"7": "7.",
"8": "8.",
"9": "9.",
"10": "10."
},
"directions": {
"north": "nord",
"northeast": "nordøst",
"east": "øst",
"southeast": "sørøst",
"south": "sør",
"southwest": "sørvest",
"west": "vest",
"northwest": "nordvest"
},
"turn_maneuvers": {
"left": "venstre",
"right": "høyre",
"sharp_left": "skarp venstre",
"sharp_right": "skarp høyre",
"slight_left": "svak venstre",
"slight_right": "svak høyre",
"straight": "rett fram",
"uturn": "u-sving"
},
"actions": {
"arrive": {
"default": {
"default": "Ankom ditt bestemmelsessted",
"name": "Ankom {way_name}"
},
"left": {
"default": "Ankom ditt bestemmelsessted, på venstre side",
"name": "Ankom {way_name}, på venstre side"
},
"right": {
"default": "Ankom ditt bestemmelsessted, på høyre side",
"name": "Ankom {way_name}, på høyre side"
},
"straight": {
"default": "Ankom ditt bestemmelsessted, rett fram",
"name": "Ankom {way_name}, rett fram"
}
},
"depart": {
"default": {
"default": "Ta av {direction}",
"name": "Ta av {direction} på {way_name}"
}
},
"roundabout": {
"default": {
"exit": {
"default": "Kjør inn i rundkjøringen og ta {exit_number} avkjørsel",
"name": "Kjør inn i rundkjøringen og ta {exit_number} avkjørsel mot {way_name}"
},
"default": {
"default": "Kjør inn i rundkjøringen",
"name": "Kjør inn i rundkjøringen og ta av mot {way_name}"
}
}
},
"turn": {
"default": {
"default": "Ta {turn_maneuver}",
"name": "Ta {turn_maneuver} mot {way_name}"
}
},
"continue": {
"default": {
"default": "Fortsett {turn_maneuver}",
"name": "Fortsett {turn_maneuver} mot {way_name}"
},
"uturn": {
"default": "Gjør en u-sving",
"name": "Gjør en u-sving mot {way_name}"
}
},
"keep": {
"default": {
"default": "Hold {turn_maneuver}",
"name": "Hold {turn_maneuver} mot {way_name}"
}
},
"pt": {
"start": {
"default": "Gå på {name}",
"headsign": "Gå på {name} rettet mot {headsign}"
},
"transfer": {
"default": "Bytt til {name}",
"headsign": "Bytt til {name} rettet mot {headsign}"
},
"end": "Gå av på {name}"
}
}
}
}

0 comments on commit 69e14bc

Please sign in to comment.