Skip to content

Commit 92a7112

Browse files
committed
Add chinese to application code
1 parent b50655e commit 92a7112

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

instructions.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ var instructionsDe = require('./instructions/de.json');
22
var instructionsEn = require('./instructions/en.json');
33
var instructionsFr = require('./instructions/fr.json');
44
var instructionsNl = require('./instructions/nl.json');
5+
var instructionsZhHans = require('./instructions/zh-Hans.json');
56

67
module.exports = {
78
get: function(language) {
@@ -14,6 +15,9 @@ module.exports = {
1415
return instructionsFr;
1516
case 'nl':
1617
return instructionsNl;
18+
case 'zh':
19+
case 'zh-Hans':
20+
return instructionsZhHans;
1721
default:
1822
throw 'invalid language ' + language;
1923
}

test/instructions_test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ const languages = [
1717
{
1818
tag: 'nl',
1919
leftTurn: 'Ga linksaf'
20+
},
21+
{
22+
tag: 'zh',
23+
leftTurn: '左转'
24+
},
25+
{
26+
tag: 'zh-Hans',
27+
leftTurn: '左转'
2028
}
2129
];
2230

0 commit comments

Comments
 (0)