Fix travis's syntax conventions errors

feature-plural-translations
Simon Vareille 2020-06-18 15:24:31 +02:00
parent 8112bf929c
commit 57e3e930a7
No known key found for this signature in database
GPG Key ID: 008AE8E706CC19F9
1 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ module.exports = function (app, options) {
p = PluralsForLocale[locale];
} else {
// split locales with a region code
let lc = locale.toLowerCase().split(/[_-\s]+/)
const lc = locale.toLowerCase().split(/[_-\s]+/)
.filter(function(el){ return true && el; });
// take the first part of locale, fallback to full locale
p = MakePlural[lc[0] || locale];
@ -175,7 +175,7 @@ module.exports = function (app, options) {
//**************************************************************//
if (text === undefined && isObject(key)) {
text = key[p(count)] || key['other'];
text = key[p(count)] || key['other'];
}
if (text === undefined) {