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:
Morris Jobke 2019-03-15 01:19:39 +01:00
parent a0792137cf
commit e58d5721a4
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -179,7 +179,7 @@ const L10n = {
language = 'xbr';
}
if (typeof language === 'undefined') {
if (typeof language === 'undefined' || language === '') {
return (1 == number) ? 0 : 1;
}