Skip to main content

Documentation

List Supported Languages

Retrieve a list of the languages supported for hosted pages.

A hosted page can appear in many foreign languages. The language (or merchant_language) field determines the default language of a hosted page. The field type is string. Use lower-case letters for the value.

  • If no value is specified, the language of the user's browser is used.

  • If the language of the user's browser cannot be determined, the default language is English.

Relevant to:

    • languages

    • List of the languages supported for hosted pages.

        • name

        • Name of the language in English.

        • iso_alpha2

        • ISO 639-1 code for the language. 2 letters, with suffix where relevant.

  • /v1/hosted/config/supported_languages

  • List Hosted Page Supported Languages

  • curl -X get
    https://sandboxapi.rapyd.net/v1/hosted/config/supported_languages
    -H 'access_key: your-access-key-here'
    -H 'Content-Type: application/json'
    -H 'idempotency: your-idempotency-parameter-here'-H 'salt: your-random-string-here'
    -H 'signature: your-calculated-signature-here'
    -H 'timestamp: your-unix-timestamp-here'
    
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "7adc1de1-74fa-4f68-aff0-b486deaa2cc1"
        },
        "data": {
            "languages": [
                {
                    "name": "English",
                    "iso_alpha2": "en"
                },
                {
                    "name": "Spanish",
                    "iso_alpha2": "es"
                },
                {
                    "name": "Simplified Chinese",
                    "iso_alpha2": "zh-cn"
                },
                {
                    "name": "Traditional Chinese",
                    "iso_alpha2": "zh-tw"
                },
                {
                    "name": "Korean",
                    "iso_alpha2": "ko"
                },
                {
                    "name": "Portuguese",
                    "iso_alpha2": "pt"
                },
                {
                    "name": "Indonesian",
                    "iso_alpha2": "id"
                },
                {
                    "name": "Thai",
                    "iso_alpha2": "th"
                },
                {
                    "name": "Tagalog",
                    "iso_alpha2": "tl"
                },
                {
                    "name": "German",
                    "iso_alpha2": "de"
                },
                {
                    "name": "Icelandic",
                    "iso_alpha2": "is"
                },
                {
                    "name": "Dutch",
                    "iso_alpha2": "nl"
                },
                {
                    "name": "Vietnamese",
                    "iso_alpha2": "vi"
                },
                {
                    "name": "Malay",
                    "iso_alpha2": "ms"
                },
                {
                    "name": "Japanese",
                    "iso_alpha2": "ja"
                },
                {
                    "name": "Hindi",
                    "iso_alpha2": "hi"
                },
                {
                    "name": "French",
                    "iso_alpha2": "fr"
                },
                {
                    "name": "Russian",
                    "iso_alpha2": "ru"
                },
                {
                    "name": "Ukrainian",
                    "iso_alpha2": "uk"
                },
                {
                    "name": "Greek",
                    "iso_alpha2": "el"
                },
                {
                    "name": "Italian",
                    "iso_alpha2": "it"
                },
                {
                    "name": "Turkish",
                    "iso_alpha2": "tr"
                },
                {
                    "name": "Lithuanian",
                    "iso_alpha2": "lt"
                },
                {
                    "name": "Estonian",
                    "iso_alpha2": "et"
                },
                {
                    "name": "Slovak",
                    "iso_alpha2": "sk"
                },
                {
                    "name": "Slovene",
                    "iso_alpha2": "sl"
                }
            ]
        }
    }