Skip to content

Commit d401ef7

Browse files
authored
Merge pull request #277 from yuryleb/tx-ja
Add Japanese localization
2 parents ed1a4a9 + fa06f81 commit d401ef7

File tree

663 files changed

+1160
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

663 files changed

+1160
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. For change
33

44
## master
55

6+
- Added an Japanese localization. [#277](https://github.com/Project-OSRM/osrm-text-instructions/pull/277)
67
- Added an Arabic localization. [#267](https://github.com/Project-OSRM/osrm-text-instructions/pull/267)
78
- Added a Slovenian localization. [#264](https://github.com/Project-OSRM/osrm-text-instructions/pull/264)
89
- Updated French grammar with 'chaussée' status street name. [#268](https://github.com/Project-OSRM/osrm-text-instructions/pull/268)

languages.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var instructionsFr = require('./languages/translations/fr.json');
1212
var instructionsHe = require('./languages/translations/he.json');
1313
var instructionsId = require('./languages/translations/id.json');
1414
var instructionsIt = require('./languages/translations/it.json');
15+
var instructionsJa = require('./languages/translations/ja.json');
1516
var instructionsKo = require('./languages/translations/ko.json');
1617
var instructionsMy = require('./languages/translations/my.json');
1718
var instructionsNl = require('./languages/translations/nl.json');
@@ -64,6 +65,7 @@ var instructions = {
6465
'he': instructionsHe,
6566
'id': instructionsId,
6667
'it': instructionsIt,
68+
'ja': instructionsJa,
6769
'ko': instructionsKo,
6870
'my': instructionsMy,
6971
'nl': instructionsNl,

languages/overrides/ja.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = function(content) {
2+
content.meta.capitalizeFirstLetter = false;
3+
4+
return content;
5+
};

languages/translations/ja.json

Lines changed: 493 additions & 0 deletions
Large diffs are not rendered by default.

test/fixtures/v5/arrive/left.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"he": "הגעת אל היעד ה שלך משמאלך",
2020
"id": "Anda telah tiba di tujuan ke-, di sebelah kiri",
2121
"it": "Sei arrivato alla tua destinazione, sulla sinistra",
22+
"ja": "目の目的地に到着しました。目的地は左側です",
2223
"ko": "좌측에 목적지가 있습니다.",
2324
"my": "သင္ သြားလိုေသာ ခရီးပန္းတိုင္သို႕ဘယ္ဘက္တြင္ေရာက္ရွိျပီ",
2425
"nl": "Je bent gearriveerd. De bestemming bevindt zich links.",

test/fixtures/v5/arrive/no_modifier.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"he": "הגעת אל היעד ה שלך",
1919
"id": "Anda telah tiba di tujuan ke-",
2020
"it": "Sei arrivato alla tua destinazione",
21+
"ja": "目の目的地に到着しました",
2122
"ko": " 목적지에 도착하였습니다.",
2223
"my": "သင္ သြားလိုေသာ ခရီးပန္းတိုင္သို႕ေရာက္ရွိျပီ",
2324
"nl": "Je bent gearriveerd op de bestemming.",

test/fixtures/v5/arrive/right.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"he": "הגעת אל היעד ה שלך מימינך",
2020
"id": "Anda telah tiba di tujuan ke-, di sebelah kanan",
2121
"it": "Sei arrivato alla tua destinazione, sulla destra",
22+
"ja": "目の目的地に到着しました。目的地は右側です",
2223
"ko": "우측에 목적지가 있습니다.",
2324
"my": "သင္ သြားလိုေသာ ခရီးပန္းတိုင္သို႕ ညာဘက္ေကြ႕ကာ ေရာက္ရွိျပီ",
2425
"nl": "Je bent gearriveerd. De bestemming bevindt zich rechts.",

test/fixtures/v5/arrive/sharp_left.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"he": "הגעת אל היעד ה שלך משמאלך",
2020
"id": "Anda telah tiba di tujuan ke-, di sebelah kiri",
2121
"it": "Sei arrivato alla tua destinazione, sulla sinistra",
22+
"ja": "目の目的地に到着しました。目的地は左側です",
2223
"ko": "좌측에 목적지가 있습니다.",
2324
"my": "သင္ သြားလိုေသာ ခရီးပန္းတိုင္သို႕ဘယ္ဘက္တြင္ေရာက္ရွိျပီ",
2425
"nl": "Je bent gearriveerd. De bestemming bevindt zich links.",

test/fixtures/v5/arrive/sharp_right.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"he": "הגעת אל היעד ה שלך מימינך",
2020
"id": "Anda telah tiba di tujuan ke-, di sebelah kanan",
2121
"it": "Sei arrivato alla tua destinazione, sulla destra",
22+
"ja": "目の目的地に到着しました。目的地は右側です",
2223
"ko": "우측에 목적지가 있습니다.",
2324
"my": "သင္ သြားလိုေသာ ခရီးပန္းတိုင္သို႕ ညာဘက္ေကြ႕ကာ ေရာက္ရွိျပီ",
2425
"nl": "Je bent gearriveerd. De bestemming bevindt zich rechts.",

test/fixtures/v5/arrive/slight_left.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"he": "הגעת אל היעד ה שלך משמאלך",
2020
"id": "Anda telah tiba di tujuan ke-, di sebelah kiri",
2121
"it": "Sei arrivato alla tua destinazione, sulla sinistra",
22+
"ja": "目の目的地に到着しました。目的地は左側です",
2223
"ko": "좌측에 목적지가 있습니다.",
2324
"my": "သင္ သြားလိုေသာ ခရီးပန္းတိုင္သို႕ဘယ္ဘက္တြင္ေရာက္ရွိျပီ",
2425
"nl": "Je bent gearriveerd. De bestemming bevindt zich links.",

0 commit comments

Comments
 (0)