Can it be that the field does not translate the default value? I tried both of them and got ‘Array’:
foo:
type: text
default:
de: 'Standart-Text'
en: 'default text'
and…
foo:
type: text
default: path.to.my.translation
Can it be that the field does not translate the default value? I tried both of them and got ‘Array’:
foo:
type: text
default:
de: 'Standart-Text'
en: 'default text'
and…
foo:
type: text
default: path.to.my.translation
Those blueprint language key strings are only intended for displaying strings in the Panel, you cannot set a value per language.
Note that a default is only set on page creation and that pages are always created in the default language.
But it works with the label-properties:
foo:
label:
de: 'Der Titel'
en: 'The Label'
type: text
Same with the language key.
On page creation, there where also be different languages.
Yes, because a label is something that is displayed in the Panel depending on the selected user language.
That makes sense indeed.
If you create a new page and generate a translated page, the default-value will be already set.
Using the placeholder-property is a good alternative:
foo:
type: text
placeholder:
de: Eine Empfehlung für dich
en: A recommendation for you