Skip to content

Form Builder - Translation Support #3

@gbugaisky

Description

@gbugaisky

Support for multiple languages on labels and hints of a webform. The JSON below shows the general structure for these kinds of forms:

{
"default_language":"default",
"id_string":"multiple_language_survey",
"children":[
    {
        "name":"name",
        "hint":{
            "French":"Indiquez les Nom et Pr\u00e9nom",
            "English":"Enter name"
        },
        "bind":{
            "required":"yes"
        },
        "label":{
            "French":"Quelle est votre nom?",
            "English":"Whats your name?"
        },
        "type":"text"
    },
    {
        "name":"age",
        "hint":{
            "French":"Indiquez l'\u00e2ge",
            "English":"Enter age"
        },
        "bind":{
            "required":"yes",
            "constraint":". <= 150"
        },
        "label":{
            "French":"Quel \u00e2ge avez-vous?",
            "English":"How old are you?"
        },
        "type":"integer"
    },
    {
        "control":{
            "bodyless":true
        },
        "children":[
            {
                "name":"instanceID",
                "bind":{
                    "readonly":"true()",
                    "calculate":"concat('uuid:', uuid())"
                },
                "type":"calculate"
            }
        ],
        "name":"meta",
        "type":"group"
    }
],
"type":"survey",
"name":"multiple_language_survey",
"sms_keyword":"multiple_language_survey",
"title":"multiple_language_survey"
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions