26 Jun 2012 19:00
NLS bundle format rules
Jamey Graham <jameyg228 <at> yahoo.com>
2012-06-26 17:00:37 GMT
2012-06-26 17:00:37 GMT
Are there rules as to what constitutes a valid NLS bundle module? I guess I (over) assumed that it could be any valid AMD module, but the following (simplified example..any syntax error is accidental), which is fine w/ dojo/i18n!, doesn't seem to get properly handled by the build system (1.7.3) -- should it? I'd rather not discuss the "why's" here (this only represents the type of thing, not the actual thing) suffice to say i was looking to leverage i18n for localized messages AND behavior.
[foo/bar/nls/bundleWithDependenciesAndFactory.js]
define(['dojo/date/locale'],
function(dl) {
return {
root: {
msg: "Today is " + dl.format(new Date())
}
}});
________________________________________________________ Dojotoolkit: http://dojotoolkit.org Reference Guide: http://dojotoolkit.org/reference-guide API Documentation: http://dojotoolkit.org/api Tutorials: http://dojotoolkit.org/documentation Dojo-interest <at> mail.dojotoolkit.org http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
RSS Feed