Languages

Add Custom Language

Required scopes: language (Read and Write).

post/languages

Request

Request body

namestring required

Language name

codestring required

Custom language code

localeCodestring required

Custom language locale code

textDirection'ltr' | 'rtl' required

Text direction in custom language. Available values:

  • 'ltr' — left-to-right
  • 'rtl' — right-to-left
pluralCategoryNamesstring[] (one,other, one,two,other, one,few,other, one,few,many,other, one,two,few,other, one,two,few,many,other, zero,one,other, zero,one,two,few,many,other, other) required

Array with category names

threeLettersCodestring required

Custom language 3 letters code

Format: ISO 6393 code

twoLettersCodestring

Custom language 2 letters code

Format: ISO 6391 code

dialectOfstring

Use if custom language is a dialect. Get id via List Supported Languages

Example request

{
  "name": "CustomLanguage",
  "code": "custom",
  "localeCode": "custom-Uk",
  "textDirection": "ltr",
  "pluralCategoryNames": [
    "one",
    "other"
  ],
  "threeLettersCode": "cus",
  "twoLettersCode": "cu",
  "dialectOf": "uk"
}

Response

Language was successfully created

Example response

{
  "data": {
    "id": "es",
    "name": "Spanish",
    "editorCode": "es",
    "twoLettersCode": "es",
    "threeLettersCode": "spa",
    "locale": "es-ES",
    "androidCode": "es-rES",
    "bcp47Code": "b+es+ES",
    "osxCode": "es.lproj",
    "osxLocale": "es",
    "pluralCategoryNames": [
      "one"
    ],
    "pluralRules": "(n != 1)",
    "pluralExamples": [
      "0, 2-999; 1.2, 2.07..."
    ],
    "textDirection": "ltr",
    "dialectOf": "es"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.