Skip to content

Commit f1d8e8b

Browse files
committed
docs(i18n): add missing locales and document response.* keys
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent a436c5e commit f1d8e8b

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

docs/usage/i18n.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,20 @@ The following locales are bundled with Swagger UI and loaded automatically when
3838

3939
| Code | Language |
4040
|------|----------|
41+
| `ca` | Catalan (Català) |
4142
| `de` | German (Deutsch) |
4243
| `en` | English *(default / fallback)* |
4344
| `es` | Spanish (Español) |
4445
| `fr` | French (Français) |
4546
| `is` | Icelandic (Íslenska) |
47+
| `it` | Italian (Italiano) |
48+
| `ja` | Japanese (日本語) |
49+
| `ka` | Georgian (ქართული) |
4650
| `ko` | Korean (한국어) |
51+
| `pl` | Polish (Polski) |
4752
| `pt` | Portuguese / Brazilian Portuguese (Português do Brasil) |
4853
| `ru` | Russian (Русский) |
54+
| `tr` | Turkish (Türkçe) |
4955
| `zh` | Chinese Simplified (简体中文) |
5056

5157
All locale files are located in `src/core/plugins/i18n/locales/`.
@@ -189,7 +195,14 @@ All translatable strings are identified by dot-namespaced keys. The full catalo
189195

190196
### Response
191197

192-
Response-related messages are defined in the English catalog and include whitespace-sensitive fragments used when rendering inline elements such as `<code>Accept</code>`. To avoid publishing an incomplete or stale subset here, refer to `locales/en.js` as the canonical source for `response.*` keys and their exact default strings.
198+
| Key | Default (English) |
199+
|-----|-------------------|
200+
| `response.controls_accept_header_prefix` | Controls |
201+
| `response.controls_accept_header_suffix` | header. |
202+
| `response.json_parse_error` | Can't parse JSON. Raw result:\n\n |
203+
| `response.no_blob_support` | Download headers detected but your browser does not support downloading binary via XHR (Blob). |
204+
| `response.unrecognized_type_display_as_text` | Unrecognized response type; displaying content as text. |
205+
| `response.unrecognized_type_unable_to_display` | Unrecognized response type; unable to display. |
193206

194207
### Topbar
195208

0 commit comments

Comments
 (0)