compound
compound copied to clipboard
fail load locales from [launguage].yml
converting my website railwayjs -> compound
here is error messages
/node_modules/compound/lib/locales.js:151:24 at Array.forEach (native) at addTranslation
has no method 'indexOf'
return function init() {
rw.locales = rw.locales || [];
// rw.locales always type of function
// console.log(rw.locales) -----> function init (){} ( it's not array)
}
Function addTranslation var translations = lang[localeName]; if (rw.locales.indexOf(localeName) === -1) {
therefore rw.locales has no method 'index Of'
p.s sorry I'm not good at English
Thanks for spotting! I've just fixed it. Check newest release (v1.1.3-7)