compound icon indicating copy to clipboard operation
compound copied to clipboard

fail load locales from [launguage].yml

Open lovejaco opened this issue 13 years ago • 1 comments

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

lovejaco avatar Dec 21 '12 13:12 lovejaco

Thanks for spotting! I've just fixed it. Check newest release (v1.1.3-7)

anatoliychakkaev avatar Dec 21 '12 13:12 anatoliychakkaev