Fix behaviour of plural default rule
* undefined and empty string should trigger the default plural form Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
a0792137cf
commit
e58d5721a4
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -179,7 +179,7 @@ const L10n = {
|
|||
language = 'xbr';
|
||||
}
|
||||
|
||||
if (typeof language === 'undefined') {
|
||||
if (typeof language === 'undefined' || language === '') {
|
||||
return (1 == number) ? 0 : 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue