Translation of defaultValues in dialogs (MGNLUI-3876)

[MGNLUI-7571] Docu Created: 13/Oct/22  Updated: 14/Oct/22  Resolved: 14/Oct/22

Status: Completed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Sub-task Priority: Neutral
Reporter: Adam Siska Assignee: Adrian Brooks
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Sprint: Nucleus 21
Team: Nucleus

 Description   

Add to this page: https://docs.magnolia-cms.com/product-docs/6.2/Developing/Templating/Dialog-definition/Field-definition/List-of-fields/Text-field.html

In the defaultValue description, draft from Adam:
-> i18n key could be used for defaultValue in order to have translations for default values in the form

defaultValue: some.i18n.key

-> in this case you need to configure

converterClass: info.magnolia.ui.field.converter.TranslatingConverter

...
For reference, config example at the top of the PR: https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/pull-requests/2222/overview
(so contacts-v8.salutation.defaultValue=Herr is used for the defaultValue if the language is de in the example)


Generated at Mon Feb 12 09:47:21 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.