Avoid using "one" and "two" as translation keys
This commit is contained in:
parent
69ff048ae1
commit
91c30d3a8c
2 changed files with 11 additions and 14 deletions
|
@ -61,10 +61,7 @@ function OSRMEngine() {
|
|||
'arrive': 14
|
||||
};
|
||||
var numToWord = function(num) {
|
||||
if(num > 10) {
|
||||
num = 11;
|
||||
}
|
||||
return ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "gt_ten"][num];
|
||||
return ["first", "second", "third", "fourth", "fifth", "sixth", "seventh", "eighth", "ninth", "tenth"][num-1];
|
||||
};
|
||||
var transformed_steps = input_steps.map(function(step, idx) {
|
||||
var maneuver_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue