The locations that the RequireJS namespaces refer to are run-time locations, such as:
./bower_components/CSA.Plugins.Account/locales
The fully qualified path for this location resolves to something similar to the following:
<ATG11dir>/CommerceAccelerator/Applications/
application-name
/src/main/j2ee-apps/store.war/bower_components/CSA.Plugins.Account/locales
During the build process, Gradle copies the translation resources for a module from the module’s source /locales
directory to the run-time /locales
directory. A module’s source /locales
directory should use the path module_name
/src/main/web-app/locales
. When creating a new module, be sure to add your translation resource files to a directory that follows this structure and name them translation_
lng
.json
where lng
is a two-letter language code. Create one translation_
lng
.json
file for each language.