odoe / generator-arcgis-js-app

Generator for ArcGIS JS API applications
42 stars 9 forks source link

Locale missing in release-build #21

Closed SpatialJ closed 7 years ago

SpatialJ commented 7 years ago

Hi Rene, i'm trying your yeoman generator. great stuff! I got a problem with locales though in the release build, it tries to load this resource file: http://localhost/srl-test-client/nls/dojo_de.js

since there is no nls folder in release I figure the locale is baked into the release and the german files are missing. How can include them into the build?

Thanks, Johannes

odoe commented 7 years ago

You can do one of two things in the generated app.

  1. Add the locale into the built layer here
  2. Adjust the Gruntfile to remove the copy portions of the release task so it doesn't copy files into a release folder. This way you just get all the files in a single built folder. You may need to adjust the processHTML bits so it's point to dojo/dojo.js and not app.js.

Thanks!

SpatialJ commented 7 years ago

I tried option (1) and it worked! Thank you :-)