你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Apps - List Supported Cultures
Gets a list of supported cultures. Cultures are equivalent to the written language and locale. For example,"en-us" represents the U.S. variation of English.
GET {Endpoint}/luis/api/v2.0/apps/cultures
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
Endpoint
|
path | True |
string |
Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). |
Request Header
Name | Required | Type | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Responses
Name | Type | Description |
---|---|---|
200 OK |
A list object containing the supported application cultures. |
|
Other Status Codes |
Error Response. |
Security
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Examples
Successful Get Application Cultures request
Sample request
GET {Endpoint}/luis/api/v2.0/apps/cultures
Sample response
[
{
"name": "English",
"code": "en-us"
},
{
"name": "Chinese",
"code": "zh-cn"
},
{
"name": "French",
"code": "fr-fr"
},
{
"name": "French Canadian",
"code": "fr-ca"
},
{
"name": "Spanish",
"code": "es-es"
},
{
"name": "Spanish Mexican",
"code": "es-mx"
},
{
"name": "Italian",
"code": "it-it"
},
{
"name": "German",
"code": "de-de"
},
{
"name": "Japanese",
"code": "ja-jp"
},
{
"name": "Brazilian Portuguese",
"code": "pt-br"
},
{
"name": "Korean",
"code": "ko-kr"
},
{
"name": "Dutch",
"code": "nl-nl"
}
]
Definitions
Name | Description |
---|---|
Available |
Available culture for using in a new application. |
Error |
Error response when invoking an operation on the API. |
AvailableCulture
Available culture for using in a new application.
Name | Type | Description |
---|---|---|
code |
string |
The ISO value for the language. |
name |
string |
The language name. |
ErrorResponse
Error response when invoking an operation on the API.
Name | Type | Description |
---|---|---|
errorType |
string |