[IMPLEMENTED] Possibility to set default value for each language

In the validation tab you can now set an default value. But when it is an localizable field, you can only set one value. This value get used on all the languages. The schema looks like this:

{
    "name": "helloWorldText",
    "properties": {
        "fieldType": "String",
        "editor": "Input",
        "defaultValue": "Hello World",
        "contentType": "Unspecified",
        "label": "Hello World Text"
    },
    "partitioning": "language"
}

It would be nice if you can set an value for each language. Something like this:

{
    "name": "helloWorldText",
    "properties": {
        "fieldType": "String",
        "editor": "Input",
        "defaultValue": {
            "en": "Hello world",
            "nl": "Hallo wereld",
            "fr": "Bonjour le monde"
        },
        "contentType": "Unspecified",
        "label": "Hello World Text"
    },
    "partitioning": "language"
}

Yes, make sense, I will think about it.

I am working on this now

I have added a second property. When a default value per language is defined it overrides default value.

1 Like

This topic was automatically closed after 2 days. New replies are no longer allowed.