There was a problem loading the comments.

Multi-language Support

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
  • 24/02/2022 1:14 PM

What is langage module

Language module injects information in the respons body depending on which language is requested. If 'missing' equals true that means that the field is not translated into that language.

Supported languages are provided by the system in every response that has language injection:

The lanuages are returened in this way: - English (en-US) - Turkish (tr-TR) - Bulgarian (bg-BG)

{
    "translates": {
        "name": {
            "en-US": {
                "value": "Field name in english",
                "missing": true
            },
            "tr-TR": {
                "value": "Field name in turkish",
                "missing": false
            },
            "bg-BG": {
                "value": "Field name in bulgarian",
                "missing": false
            }
        },
        "description_html": {
            "en-US": {
                "value": "Text in english",
                "missing": true
            },
            "tr-TR": {
                "value": "Text in turkish",
                "missing": true
            },
            "bg-BG": {
                "value": "Text in bulgarian",
                "missing": true
            }
        }
    }
}

To select another language, simply send a GET request with the following header:

Accept-Language:	en-US

Share via

Related Articles

© ApiHawk