added fallback if no plural is specified on a plural object
This commit is contained in:
parent
df24bad697
commit
ceb61e7e14
1 changed files with 2 additions and 0 deletions
|
@ -329,6 +329,8 @@ const app = new Vue({
|
||||||
return (Math.abs(curr.value - options["plural"]) < Math.abs(prev.value - options["plural"]) ? curr : prev);
|
return (Math.abs(curr.value - options["plural"]) < Math.abs(prev.value - options["plural"]) ? curr : prev);
|
||||||
});
|
});
|
||||||
return closest.text;
|
return closest.text;
|
||||||
|
}else if(typeof this.lz[message] === "object") {
|
||||||
|
return this.lz[message][0].text;
|
||||||
}
|
}
|
||||||
return this.lz[message]
|
return this.lz[message]
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue