Freigeben über


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

AvailableCulture[]

A list object containing the supported application cultures.

Other Status Codes

ErrorResponse

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
AvailableCulture

Available culture for using in a new application.

ErrorResponse

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