added en-US date picker localization. Used in case application.localization.irregularLangToLocaleMap
in ubConfig.json contains {"en": "en-US"} key-value
UBDomain: added new property description for models. It is taken from the description property of models package.json.
For UB server < 5.24.21 property is empty.
added new method formatByPattern.addIrregularLangToLocales({lang: locale}) what allow to override default lang -> locale conversion.
Called automatically by AsyncConnection and from inside server using value from application.localization.irregularLangToLocaleMap ubConfig section
declarative language to locale: new section in ubConfig.jsonapplication.localization.irregularLangToLocaleMap
can contain a language to locale transformation rules.
For example, by default UB consider en language is en-GB locale, therefore
formatByPattern.formatDate('2021-12-30', 'date') returns 30/12/2021 (dd/mm/yy), but if we define
"irregularLangToLocaleMap": {"en": "en-US"} in config, the same function will return 12/30/2021 (mm/dd/yy)
as in American locale.
Prior to these changes, the developer had to use the JS function formatByPattern.setLang2LocaleHook in the model to achieve the same result
allLocales endpoint now combine not only /model/locale/lang-${lang}.json files, but also /model/locale/lang-${locale}.json.
This allows to define a different localization for different locale, for example by adding locale/lang-en-US.json for US.
ubcli generateNginxCfg: generated config now contains fix for nginx mime.types what not including .mjs extension.
In case of multiple UB servers may produce warning during nginx -T, but still works