The recommended way to set the locale for a Ext JS 7.4.0 modern app is in app.json
:
"requires": [
"ext-locale"
],
"locale": "de",
This works fine for sencha app build development
but has no effect for sencha app build production
(the production build just uses the default english locale).
I also tried by setting the build descriptor in app.json
:
"builds": {
"modern": {
"toolkit": "modern",
"locales": [
"de"
]
}
},
Sencha Cmd then processes the modern-de
instead of the default
build descriptor, but still, no effect in the production build.
It is a bug in Ext JS 7.2, 7.3, and 7.4. Commenting out the last three Ext.define statements in ext\modern\locale\overrides\de\locale-de.js
solves the problem as described in Publishing ext.js 7.2 Modern project with localization