# Configure multi-language content

Message cards support the configuration of multi-language content. When you send a message card configured with multi-language content to a user, the user will see the card content consistent with the local Feishu locale.

## Precautions

- If the user's local language environment is not within the multi-language configuration range of the message card, the existing language will be displayed by default. For example, if the message card is configured with both Chinese and English languages, but the user's local environment is Japanese, the Chinese message card will be displayed in the Feishu client by default.

- The multilingual content of the message card is an optional configuration item. If your business does not have internationalization requirements, you can ignore this configuration.

## Supported languages

Message card supports configuration in 16 languages, including English, Simplified Chinese, Traditional Chinese (Hong Kong), Traditional Chinese (Taiwan), Japanese, Indonesian, Vietnamese, Thai, Portuguese, Spanish, Korean, German, French, Italian, Russian, and Malay.

## Configuration steps

The multi-language configuration of the message card mainly involves the content of the card structure `elements|i18n_elements` and the title `header`.

### Configure card body content

In the structure of the multilingual message card, you need to use `i18n_elements` instead of `elements`, add the required multilingual structures in sequence, and configure card components or elements in each structure. The JSON example format is as follows:

```JSON
"i18n_elements": {
  // Multilingual configuration for the body text. You can configure a complete card under each language, and the card will automatically display content in the corresponding language based on the user's Feishu client language.
  "en_us": [
    {}
  ], // English
  "zh_cn": [
    {}
  ], // Simplified Chinese
  "zh_hk": [
    {}
  ], // Traditional Chinese (Hong Kong)
  "zh_tw": [
    {}
  ], // Traditional Chinese (Taiwan)
  "ja_jp": [
    {}
  ], // Japanese
  "id_id": [
    {}
  ], // Indonesian
  "vi_vn": [
    {}
  ], // Vietnamese
  "th_th": [
    {}
  ], // Thai
  "pt_br": [
    {}
  ], // Portuguese
  "es_es": [
    {}
  ], // Spanish
  "ko_kr": [
    {}
  ], // Korean
  "de_de": [
    {}
  ], // German
  "fr_fr": [
    {}
  ], // French
  "it_it": [
    {}
  ], // Italian
  "ru_ru": [
    {}
  ], // Russian
  "ms_my": [
    {}
  ] // Malay
}
```

### Configure card title

If a card includes a title component, you need to add the multilingual properties for the title. This involves adding corresponding multilingual properties in the "header" field for the card title, subtitle, and title text tag.

For details about the JSON parameters of the title component, see [title](https://open.feishu.cn/document/ukTMukTMukTM/ukTNwUjL5UDM14SO1ATN).

```JSON
{
  "header": {
    "template": "blue",
    "title": {
      "tag": "plain_text",
      "content": "Example Title",
      "i18n": {
        // Configuration for multilingual settings of the card's title. Must configure either content or i18n, and if both are configured, only i18n takes effect.
        "zh_cn": "", // Simplified Chinese
        "en_us": "", // English
        "zh_hk": "", // Traditional Chinese (Hong Kong)
        "zh_tw": "", // Traditional Chinese (Taiwan)
        "ja_jp": "", // Japanese
        "id_id": "", // Indonesian
        "vi_vn": "", // Vietnamese
        "th_th": "", // Thai
        "pt_br": "", // Portuguese
        "es_es": "", // Spanish
        "ko_kr": "", // Korean
        "de_de": "", // German
        "fr_fr": "", // French
        "it_it": "", // Italian
        "ru_ru": "", // Russian
        "ms_my": "" // Malay
      }
    },
    "subtitle": {
      "tag": "plain_text",
      "content": "Example Text",
      "i18n": {
        // Configuration for multilingual settings of the card's subtitle. Must configure either content or i18n, and if both are configured, only i18n takes effect.
        "zh_cn": "", // Simplified Chinese
        "en_us": "", // English
        "zh_hk": "", // Traditional Chinese (Hong Kong)
        "zh_tw": "", // Traditional Chinese (Taiwan)
        "ja_jp": "", // Japanese
        "id_id": "", // Indonesian
        "vi_vn": "", // Vietnamese
        "th_th": "", // Thai
        "pt_br": "", // Portuguese
        "es_es": "", // Spanish
        "ko_kr": "", // Korean
        "de_de": "", // German
        "fr_fr": "", // French
        "it_it": "", // Italian
        "ru_ru": "", // Russian
        "ms_my": "" // Malay
      }
    },
    "text_tag_list": [
      {
        "tag": "text_tag",
        "text": {
          // Tag content
          "tag": "plain_text",
          "content": "Tag 1"
        },
        "color": "neutral"
      }
    ],
    "i18n_text_tag_list": {
      // Configuration for multilingual settings of title text tags. Maximum of 3 tags per language. If both i18n_text_tag_list and text_tag_list are configured, only i18n_text_tag_list takes effect.
      "zh_cn": [
        {}
      ], // Simplified Chinese
      "en_us": [
        {}
      ], // English
      "zh_hk": [
        {}
      ], // Traditional Chinese (Hong Kong)
      "zh_tw": [
        {}
      ], // Traditional Chinese (Taiwan)
      "ja_jp": [
        {}
      ], // Japanese
      "id_id": [
        {}
      ], // Indonesian
      "vi_vn": [
        {}
      ], // Vietnamese
      "th_th": [
        {}
      ], // Thai
      "pt_br": [
        {}
      ], // Portuguese
      "es_es": [
        {}
      ], // Spanish
      "ko_kr": [
        {}
      ], // Korean
      "de_de": [
        {}
      ], // German
      "fr_fr": [
        {}
      ], // French
      "it_it": [
        {}
      ], // Italian
      "ru_ru": [
        {}
      ], // Russian
      "ms_my": [
        {}
      ] // Malay
    }
  }
}

```
## Card example

```json
{
   "header": {
     "template": "blue",
     "title": {
       "tag": "plain_text",
       "i18n": {
         "en_us": "English template",
         "ja_jp": "日本语テンプレート",
         "zh_hk": "Traditional Chinese (Hong Kong, China)",
         "zh_tw": "Traditional Chinese (Taiwan, China)",
         "zh_cn": "Chinese template"
       }
     }
   },
   "i18n_elements": {
     "en_us": [
       {
         "tag": "markdown",
         "content": "English template"
       }
     ],
     "ja_jp": [
       {
         "tag": "markdown",
         "content": "日本语テンプレート"
       }
     ],
     "zh_hk": [
       {
         "tag": "markdown",
         "content": "Traditional Chinese (Hong Kong, China)"
       }
     ],
     "zh_tw": [
       {
         "tag": "markdown",
         "content": "Traditional Chinese (Taiwan, China)"
       }
     ],
     "zh_cn": [
       {
         "tag": "markdown",
         "content": "Chinese template"
       }
     ]
   }
}
```

You can paste the above JSON example into the editor of the message card building tool to view the corresponding multi-language card example effect.

![image.png](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/78669e437e096771a4eb201fc2960a88_6gYTZEAOFY.png?height=1428&lazyload=true&maxWidth=600&width=2882)