You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i18n key in UI Schema options, i18n key in JSON Schema, otherwise default generated based on the property path.
Default Error Translation:
<i18nkey>.error.custom: Single message no matter how many errors are there
<i18nkey>.error.<keyword> e.g. name.error.required or name.error.pattern,
error.<keyword>, e.g. error.required, error.pattern
should match pattern [0-9]+
Enum Translations
Translate function should be side effect free and should be stable (memoized) to avoid unnecessary rerenderings, i.e. the translate function should only change if there are new translations.
Showcase how to access locale, translate and translateError in custom renderers (React). const ctx = useJsonForms(). Mention that for example locale can be used for number formatting.
Polished:
Showcase translation examples
default keys
i18n keys
default messages
Showcase integration with react-intl
There is a live demo of translation support in Vue-Vanilla dev setup
The text was updated successfully, but these errors were encountered:
MVP:
i18n
i18n
: (locale
,translate
,translateError
) given via propsi18n
key in UI Schema options,i18n
key in JSON Schema, otherwise default generated based on the property path.<i18nkey>.error.custom
: Single message no matter how many errors are there<i18nkey>.error.<keyword>
e.g.name.error.required
orname.error.pattern
,error.<keyword>
, e.g.error.required
,error.pattern
should match pattern [0-9]+
translate
function should only change if there are new translations.locale
,translate
andtranslateError
in custom renderers (React).const ctx = useJsonForms()
. Mention that for example locale can be used for number formatting.Polished:
Showcase translation examples
Showcase integration with
react-intl
There is a live demo of translation support in Vue-Vanilla dev setup
The text was updated successfully, but these errors were encountered: