lovejaco
lovejaco
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 || [];...
my code [viewname].html -- error messge : Cannot call method 'T' of undefined controller-extenstions.js Controller.prototype.t = function() { if (!this._t) { this._t = this.compound.T(); this._t.locale = this.app.settings.defaultLocale || 'en'; this._T...
in controller-extension.js
railway style views .folder 1 .folder 2 .some view files // shared views it is possible to load any controllers but compound is not
method is fine t.locale is undefined
express support path nomailize example. render('../list') but compound does not .... after 1.14-14 so i suggest code in controller-extensions.js convert var file = this.controllerName + '/' + view to var...
for example is fine but var tokens = ['user', 'test']; is fail T(global) method in i18n.js function translate(path, locale, defaultValue) { ... substitute = path; path = substitute.shift(); // i...