I'm trying to do a custom build with compression. The build completes successfully, but my app is not able to find bundles loaded through getLocalization. It appears that the requireLocalization calls are having trouble with the module names. The documentation for the custom build implies that the resource bundles are embedded into the compressed Javascript file, but that isn't happening in my case. Is there something I need to do to enable the bundles to be pulled in? Can I specify them in the profile file somehow? Here's an example of the kind of failure I'm seeing, from Firebug:
Bundle not found: common in dojoy.edit , locale=en-us
[Break on this error] throw new Error("Bundle not found: " + bundleName + " in " + packageName+" , lo...
Here is a section of the Javascript:
dojo.requireLocalization("dojoy.edit", "common");
dojoy.edit.dialogs.localization = dojo.i18n.getLocalization("dojoy.edit", "common");
dojoy.edit.dialogs.createDialog = function(params, pane){
Since localization is not initialized properly, the following error is produced later in Firebug:
failed loading /dojoy/edit/actions/ContextActions.js with error: TypeError: dojoy.edit.dialogs.localization has no properties
Any help is appreciated!
Thanks,
Brett

Update - I think I've got
Update - I think I've got this figured out. The compressed resource bundles are getting generated correctly. I found them in the nls directory. The loading problem seems to come from my code trying to do the getLocalization call in the global namespace. What appears to be happening is that the getLocalization call processes before the /nls/mydojo_xx.js is loaded. To work around the problem, I loaded the /nls/mydojo_ROOT.js in a script tag before my /mydojo.js. So, my index.html looks like this:
<script type="text/javascript" src="/release/dojo/dojo/nls/mydojo_ROOT.js"></script>
<script type="text/javascript" src="/release/dojo/dojo/mydojo.js"></script>
This gets me around the problem until I can restructure the code to not do the getLocalization before things are loaded.
Regards,
Brett
You can use dojo.addOnLoad()
You can use dojo.addOnLoad() to know when it is safe to call dojo.i18n.getLocalization():
dojoy.edit.dialogs.localization = dojo.i18n.getLocalization("dojoy.edit", "common");
});