javascript - YUI Shifter builder for language i18n from YRB(.pres) -
i working on website internalization , has yui3 in stack, use yui intl module that. reading documentation gave idea leverage shifter builder convert java property i18n files yui3 intl format (think yrb(.pres) both have same syntax. going created meta module/meta/module.json
file looking this:
{ "modulename": { "requires": [ "oop" ] }, "lang": ["en"] }
and accordingly placed language file module/lang/modulename_en.pres
.
that's not worked out, build processing no lang folders context created. tried use json javascript version no luck. guess missing additional step.
upd: thank comments. there wrong syntax in meta, lang
property has on same level requires
fixed problem finding language files still there error when trying use .pres files. here output:
.... shifter [info] shifting 2 langs module fs.js:427 return binding.open(pathmodule._makelong(path), stringtoflags(flags), mode); ^ error: enoent, no such file or directory 'c:\\..\module\lang\module.js' @ object.fs.opensync (fs.js:427:18) @ object.fs.opensync (c:\program files\nodejs\node_modules\shifter\node_mod ules\cpr\node_modules\graceful-fs\graceful-fs.js:68:26) @ object.fs.readfilesync (fs.js:284:15) @ c:\program files\nodejs\node_modules\shifter\lib\module.js:424:26 @ array.foreach (native) @ object.buildlang [as lang] (c:\program files\nodejs\node_modules\shifter\ lib\module.js:417:11) @ c:\program files\nodejs\node_modules\shifter\lib\module.js:709:33 @ c:\program files\nodejs\node_modules\shifter\lib\stack.js:24:38 @ c:\program files\nodejs\node_modules\shifter\lib\module.js:372:13 @ c:\program files\nodejs\node_modules\shifter\node_modules\gear\node_modul es\async\lib\async.js:190:13
i opened report shifter github repo. try debug , see missing here.
seems intl module documentation referring other internal version of shifter other git one, or possibly functionality on way. nevertheles needed functionality , there works far.
upd: comment did glimpse pre shifter era builder, , find out yrb2json parser here in javascript format. seems 1 person these years interested in functionality nodejs shifter.
Comments
Post a Comment