参考:本地化文件 JSON 架构Reference: Localization file JSON schema

Microsoft 团队本地化文件介绍将根据客户端语言设置提供的语言翻译。The Microsoft Teams localization file describes language translations that will be served based on the client language settings. 您的文件必须符合托管的架构 https://developer.microsoft.com/en-us/json-schemas/teams/v1.7/MicrosoftTeams.Localization.schema.jsonYour file must conform to the schema hosted at https://developer.microsoft.com/en-us/json-schemas/teams/v1.7/MicrosoftTeams.Localization.schema.json. 有关其他信息,请参阅应用程序本地化For additional information see app localization.

示例Sample

{
  "$schema": "https://developer.microsoft.com/json-schemas/teams/v1.7/MicrosoftTeams.schema.json",
  "name.short": "Le App Studio",
  "name.full": "App Studio pour Microsoft Teams",
  "description.short": "Créez d'excellentes applications pour Microsoft Teams avec App Studio.",
  "description.full": "Créez de nouvelles applications Microsoft Teams, concevez et prévisualisez des cartes bot, et explorez la documentation avec App Studio.",
  "staticTabs[0].name": "Editeur de manifest",
  "staticTabs[1].name": "Editeur de cartes",
  "staticTabs[2].name": "Bibliothèque de contrôles",
  "bots[0].commandLists[0].commands[0].title": "chercher",
  "bots[0].commandLists[0].commands[0].description": "Rechercher la documentation Teams pertinente"
}

架构定义了以下属性:The schema defines the following properties:

$schema$schema

URIURI

引用清单的 JSON 架构的 https://URL。The https:// URL referencing the JSON Schema for the manifest.

提示

指定清单开头的架构,以从代码编辑器中启用 IntelliSense 或类似支持:"$schema": "https://developer.microsoft.com/json-schemas/teams/v1.7/MicrosoftTeams.schema.json",Specify the schema at the beginning of your manifest to enable IntelliSense or similar support from your code editor: "$schema": "https://developer.microsoft.com/json-schemas/teams/v1.7/MicrosoftTeams.schema.json",

名称。 shortname.short

字符串,最大长度为30String, Max Length 30

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string from the app manifest with the value provided here.

名称。 fullname.full

字符串,最大长度为100String, Max Length 100

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string from the app manifest with the value provided here.

说明。 shortdescription.short

字符串,最大长度为80String, Max Length 80

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string from the app manifest with the value provided here.

描述。 fulldescription.full

字符串,最大长度为4000String, Max Length 4000

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string from the app manifest with the value provided here.

staticTabs \ [([0-9] | 1 [0-5]) \ ] \ 。名称staticTabs\[([0-9]|1[0-5])\]\.name

字符串,最大长度为128String, Max Length 128

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string(s) from the app manifest with the value provided here.

bot \ [0 \ ] \ . commandLists \ [[0-2] \ ] \ . 命令 \ [[0-9] \ ] \ . 标题bots\[0\]\.commandLists\[[0-2]\]\.commands\[[0-9]\]\.title

字符串,最大长度为32String, Max Length 32

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string(s) from the app manifest with the value provided here.

bot \ [0 \ ]. \ commandLists \ [[0-2] \ ] \ . 命令 \ [[0-9] \ ] \ . 说明bots\[0\]\.commandLists\[[0-2]\]\.commands\[[0-9]\]\.description

字符串,最大长度为128String, Max Length 128

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string(s) from the app manifest with the value provided here.

composeExtensions \ [0 \ ] \ . 命令 \ [[0-9] \ ] \ . titlecomposeExtensions\[0\]\.commands\[[0-9]\]\.title

字符串,最大长度为32String, Max Length 32

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string(s) from the app manifest with the value provided here.

composeExtensions \ [0 \ ] \ . 命令 \ [[0-9] \ ] \ . 说明composeExtensions\[0\]\.commands\[[0-9]\]\.description

字符串,最大长度为128String, Max Length 128

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string(s) from the app manifest with the value provided here.

composeExtensions \ [0 \ ] \ . 命令 \ [[0-9] \ ] \ . parameters \ [[0-4] \ ] \ . 标题composeExtensions\[0\]\.commands\[[0-9]\]\.parameters\[[0-4]\]\.title

字符串,最大长度为32String, Max Length 32

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string(s) from the app manifest with the value provided here.

composeExtensions \ [0 \ ] \ . 命令 \ [[0-9] \ ] \ . parameters \ [[0-4] \ ] \ . 说明composeExtensions\[0\]\.commands\[[0-9]\]\.parameters\[[0-4]\]\.description

字符串,最大长度为128String, Max Length 128

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string(s) from the app manifest with the value provided here.

composeExtensions \ [0 \ ] \ . 命令 \ [[0-9] \ ] \ . 参数 \ [[0-4] \ ] \ . 值composeExtensions\[0\]\.commands\[[0-9]\]\.parameters\[[0-4]\]\.value

字符串,最大长度为512String, Max Length 512

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string(s) from the app manifest with the value provided here.

composeExtensions \ [0 \ ] \ . 命令 \ [[0-9] \ ] \ . parameters \ [[0-4] \ ] \ . 选择 \ [[0-9] \ ] \ . 标题composeExtensions\[0\]\.commands\[[0-9]\]\.parameters\[[0-4]\]\.choices\[[0-9]\]\.title

字符串,最大长度为128String, Max Length 128

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string(s) from the app manifest with the value provided here.

composeExtensions \ [0 \ ] \ . 命令 \ [[0-9] \ ] \ . taskInfo \composeExtensions\[0\]\.commands\[[0-9]\]\.taskInfo\.title

字符串,最大长度为64String, Max Length 64

将应用程序清单中对应的字符串替换为此处提供的值。Replaces the corresponding string(s) from the app manifest with the value provided here.