Fix travis's syntax conventions errors
parent
8112bf929c
commit
57e3e930a7
2
index.js
2
index.js
|
@ -164,7 +164,7 @@ module.exports = function (app, options) {
|
||||||
p = PluralsForLocale[locale];
|
p = PluralsForLocale[locale];
|
||||||
} else {
|
} else {
|
||||||
// split locales with a region code
|
// split locales with a region code
|
||||||
let lc = locale.toLowerCase().split(/[_-\s]+/)
|
const lc = locale.toLowerCase().split(/[_-\s]+/)
|
||||||
.filter(function(el){ return true && el; });
|
.filter(function(el){ return true && el; });
|
||||||
// take the first part of locale, fallback to full locale
|
// take the first part of locale, fallback to full locale
|
||||||
p = MakePlural[lc[0] || locale];
|
p = MakePlural[lc[0] || locale];
|
||||||
|
|
Loading…
Reference in New Issue