Skip to content

Commit

Permalink
NC-4385: [turnstile] Add new languages (#13613)
Browse files Browse the repository at this point in the history
* NC-4385: [turnstile] Add new languages

* Update content/turnstile/reference/supported-languages.md

Co-authored-by: Miguel de Moura <9093796+migueldemoura@users.noreply.github.com>

* Update content/turnstile/reference/supported-languages.md

Co-authored-by: Miguel de Moura <9093796+migueldemoura@users.noreply.github.com>

* Apply suggestions from code review

* Note for feedback submission

* Update content/turnstile/reference/supported-languages.md

---------

Co-authored-by: Miguel de Moura <9093796+migueldemoura@users.noreply.github.com>
Co-authored-by: Patricia Santa Ana <103445940+patriciasantaana@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 26, 2024
1 parent ad92dcc commit a93a215
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 26 deletions.
68 changes: 42 additions & 26 deletions content/turnstile/reference/supported-languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,46 @@ weight: 9

# Supported languages

Turnstile supports `auto` (default) and the languages listed in the table below:
Turnstile supports `auto` (default), which uses the visitor's browser language if it is supported. You can also explicitly set the widget's language to one listed on the table below:

| Language code | Language |
| --- | --- |
| `ar-eg` | Arabic (Egypt) |
| `ar` | Arabic |
| `de` | German |
| `en` | English |
| `es` | Spanish |
| `fa` | Farsi |
| `fr` | French |
| `id` | Indonesian |
| `it` | Italian |
| `ja` | Japanese |
| `ko` | Korean |
| `nl` | Dutch |
| `pl` | Polish |
| `pt` | Portuguese |
| `pt-br` | Portuguese (Brazil) |
| `ru` | Russian |
| `tlh` | Klingon |
| `tr` | Turkish |
| `uk` | Ukrainian |
| `uk-ua` | Ukrainian (Ukraine) |
| `zh` | Chinese |
| `zh-cn` | Chinese (Simplified) |
| `zh-tw` | Chinese (Traditional) |

| Language code (4 letters) | Language code (2 letters) | Language |
| --- | --- | --- |
| `ar-eg` | `ar` | Arabic (Egypt) |
| `bg-bg` | `bg` | Bulgarian (Bulgaria) |
| `cs-cz` | `cs` | Czech (Czech Republic) |
| `da-dk` | `da` | Danish (Denmark) |
| `de-de` | `de` | German (Germany) |
| `el-gr` | `el` | Greek (Greece) |
| `en-us` | `en` | English (United States) |
| `es-es` | `es` | Spanish (Spain) |
| `fa-ir` | `fa` | Farsi (Iran) |
| `fi-fi` | `fi` | Finnish (Finland) |
| `fr-fr` | `fr` | French (France) |
| `he-il` | `he` | Hebrew (Israel) |
| `hi-in` | `hi` | Hindi (India) |
| `hr-hr` | `hr` | Croatian (Croatia) |
| `hu-hu` | `hu` | Hungarian (Hungary) |
| `id-id` | `id` | Indonesian (Indonesia) |
| `it-it` | `it` | Italian (Italy) |
| `ja-jp` | `ja` | Japanese (Japan) |
| `ko-kr` | `ko` | Korean (Korea) |
| `lt-lt` | `lt` | Lithuanian (Lithuania) |
| `ms-my` | `ms` | Malay (Malaysia) |
| `nb-no` | `nb` | Norwegian Bokmål (Norway) |
| `nl-nl` | `nl` | Dutch (Netherlands) |
| `pl-pl` | `pl` | Polish (Poland) |
| `pt-br` | `pt` | Portuguese (Brazil) |
| `ro-ro` | `ro` | Romanian (Romania) |
| `ru-ru` | `ru` | Russian (Russia) |
| `sk-sk` | `sk` | Slovak (Slovakia) |
| `sl-si` | `sl` | Slovenian (Slovenia) |
| `sr-ba` | `sr` | Serbian (Bosnia and Herzegovina) |
| `sv-se` | `sv` | Swedish (Sweden) |
| `th-th` | `th` | Thai (Thailand) |
| `tlh` | -- | Klingon (Qo'noS) |
| `tr-tr` | `tr` | Turkish (Turkey) |
| `uk-ua` | `uk` | Ukrainian (Ukraine) |
| `vi-vn` | `vi` | Vietnamese (Vietnam) |
| `zh-cn` | `zh` | Chinese (Simplified, China) |
| `zh-tw` | -- | Chinese (Traditional, Taiwan) |
3 changes: 3 additions & 0 deletions data/changelogs/turnstile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
link: "/turnstile/changelog/"
productName: Turnstile
entries:
- publish_date: '2024-03-25'
description: |-
- Added more [supported languages](/turnstile/reference/supported-languages)
- publish_date: '2023-12-18'
description: |-
- Added [Pre-Clearance mode](/turnstile/get-started/pre-clearance-support/).
Expand Down

0 comments on commit a93a215

Please sign in to comment.