Skip to content

prevent returning of an object by the `i18n`; fix some eslint errors in `i18n` file

Mazur Volodymyr requested to merge fix/i18n-prevent-returning-of-object into master

This fix is necessary for cases when we want to extend entity attributes with some new for validation in the save action. For example https://git-pub.intecracy.com/unitybase/ldoc/-/blob/master/packages/forms/public/forms/ubm_navshortcut_extend-fm.vue#L58 - fieldList does not exists in ubm_navshortcut entity but we want this attribute will be displayed right on error modal https://git-pub.intecracy.com/unitybase/ubjs/-/blob/master/packages/adminui-vue/utils/Form/processing.js#L771 . But when we extend entity attributes with i18nExtend ( https://git-pub.intecracy.com/unitybase/ldoc/-/blob/master/packages/forms/public/locale/lang-en.js#L441 ), i18n('ubm_navshortcut') return object

Merge request reports