Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ public void localeDownloadTest() throws ApiException, IOException, InterruptedEx
Boolean includeUnverifiedTranslations = null;
Boolean useLastReviewedVersion = null;
String fallbackLocaleId = null;
Boolean useLocaleFallback = null;
String sourceLocaleId = null;
Object customMetadataFilters = null;
String translationKeyPrefix = null;
Expand All @@ -177,7 +178,7 @@ public void localeDownloadTest() throws ApiException, IOException, InterruptedEx
branch, fileFormat, tags, tag, includeEmptyTranslations, excludeEmptyZeroForms,
includeTranslatedKeys, keepNotranslateTags, convertEmoji, formatOptions, encoding,
skipUnverifiedTranslations, includeUnverifiedTranslations, useLastReviewedVersion,
fallbackLocaleId, sourceLocaleId, translationKeyPrefix, filterByPrefix,
fallbackLocaleId, useLocaleFallback, sourceLocaleId, translationKeyPrefix, filterByPrefix,
customMetadataFilters, localeIds, updatedSince);

String fileContents = new String(java.nio.file.Files.readAllBytes(response.toPath()));
Expand Down
22 changes: 18 additions & 4 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -8833,13 +8833,22 @@
}
},
{
"description": "If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to `true`.",
"example": null,
"name": "fallback_locale_id",
"description": "If a key has no translation in the locale being downloaded, the translation in the fallback locale will be used.\nProvide the ID of the locale that should be used as the fallback.\nRequires `include_empty_translations` to be set to `true`. Mutually exclusive with `use_locale_fallback`.\n",
"in": "query",
"schema": {
"type": "string"
}
},
"example": null
},
{
"name": "use_locale_fallback",
"description": "If a key has no translation in the locale being downloaded, the translation in the fallback locale will be used.\nFallback locale is defined in [locale's settings](/en/api/strings/locales/update-a-locale#body-fallback-locale-id).\nRequires `include_empty_translations` to be set to `true`. Mutually exclusive with `fallback_locale_id`.\n",
"in": "query",
"schema": {
"type": "boolean"
},
"example": true
},
{
"description": "Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a `tag` parameter indicating a specific job.",
Expand Down Expand Up @@ -9053,10 +9062,15 @@
]
},
"fallback_locale_id": {
"description": "If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to `true`.",
"description": "If a key has no translation in the locale being downloaded, the translation in the fallback locale will be used.\nProvide the ID of the locale that should be used as the fallback.\nRequires `include_empty_translations` to be set to `true`. Mutually exclusive with `use_locale_fallback`.\n",
"type": "string",
"example": "abcd1234abcd1234abcd1234abcd1234"
},
"use_locale_fallback": {
"description": "If a key has no translation in the locale being downloaded, the translation in the fallback locale will be used.\nFallback locale is defined in [locale's settings](/en/api/strings/locales/update-a-locale#body-fallback-locale-id).\nRequires `include_empty_translations` to be set to `true`. Mutually exclusive with `fallback_locale_id`.\n",
"type": "boolean",
"example": false
},
"source_locale_id": {
"description": "Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a `tag` parameter indicating a specific job.",
"example": "abcd1234abcd1234abcd1234abcd1234",
Expand Down
12 changes: 11 additions & 1 deletion paths/locale_downloads/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,19 @@ requestBody:
- de
- en
fallback_locale_id:
description: If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to `true`.
description: |
If a key has no translation in the locale being downloaded, the translation in the fallback locale will be used.
Provide the ID of the locale that should be used as the fallback.
Requires `include_empty_translations` to be set to `true`. Mutually exclusive with `use_locale_fallback`.
type: string
example: abcd1234abcd1234abcd1234abcd1234
use_locale_fallback:
description: |
If a key has no translation in the locale being downloaded, the translation in the fallback locale will be used.
Fallback locale is defined in [locale's settings](/en/api/strings/locales/update-a-locale#body-fallback-locale-id).
Requires `include_empty_translations` to be set to `true`. Mutually exclusive with `fallback_locale_id`.
type: boolean
example: false
source_locale_id:
description: Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a `tag` parameter indicating a specific job.
example: abcd1234abcd1234abcd1234abcd1234
Expand Down
18 changes: 15 additions & 3 deletions paths/locales/download.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,24 @@ parameters:
in: query
schema:
type: boolean
- description: If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to `true`.
example:
name: fallback_locale_id
- name: fallback_locale_id
description: |
If a key has no translation in the locale being downloaded, the translation in the fallback locale will be used.
Provide the ID of the locale that should be used as the fallback.
Requires `include_empty_translations` to be set to `true`. Mutually exclusive with `use_locale_fallback`.
in: query
schema:
type: string
example:
- name: use_locale_fallback
description: |
If a key has no translation in the locale being downloaded, the translation in the fallback locale will be used.
Fallback locale is defined in [locale's settings](/en/api/strings/locales/update-a-locale#body-fallback-locale-id).
Requires `include_empty_translations` to be set to `true`. Mutually exclusive with `fallback_locale_id`.
in: query
schema:
type: boolean
example: true
- description: Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a `tag` parameter indicating a specific job.
example:
name: source_locale_id
Expand Down
Loading