Skip to content

Commit 5cfc6d2

Browse files
committed
copilot suggestions
1 parent f99446d commit 5cfc6d2

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

doc/compiled.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8833,21 +8833,22 @@
88338833
}
88348834
},
88358835
{
8836-
"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`.",
8837-
"example": null,
88388836
"name": "fallback_locale_id",
8837+
"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",
88398838
"in": "query",
88408839
"schema": {
88418840
"type": "string"
8842-
}
8841+
},
8842+
"example": null
88438843
},
88448844
{
8845-
"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`.\n",
88468845
"name": "use_locale_fallback",
8846+
"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",
88478847
"in": "query",
88488848
"schema": {
88498849
"type": "boolean"
8850-
}
8850+
},
8851+
"example": true
88518852
},
88528853
{
88538854
"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.",
@@ -9061,12 +9062,12 @@
90619062
]
90629063
},
90639064
"fallback_locale_id": {
9064-
"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`.\n",
9065+
"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",
90659066
"type": "string",
90669067
"example": "abcd1234abcd1234abcd1234abcd1234"
90679068
},
90689069
"use_locale_fallback": {
9069-
"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`.\n",
9070+
"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",
90709071
"type": "boolean",
90719072
"example": false
90729073
},

paths/locale_downloads/create.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ requestBody:
7676
description: |
7777
If a key has no translation in the locale being downloaded, the translation in the fallback locale will be used.
7878
Provide the ID of the locale that should be used as the fallback.
79-
Requires `include_empty_translations` to be set to `true`.
79+
Requires `include_empty_translations` to be set to `true`. Mutually exclusive with `use_locale_fallback`.
8080
type: string
8181
example: abcd1234abcd1234abcd1234abcd1234
8282
use_locale_fallback:
8383
description: |
8484
If a key has no translation in the locale being downloaded, the translation in the fallback locale will be used.
8585
Fallback locale is defined in [locale's settings](/en/api/strings/locales/update-a-locale#body-fallback-locale-id).
86-
Requires `include_empty_translations` to be set to `true`.
86+
Requires `include_empty_translations` to be set to `true`. Mutually exclusive with `fallback_locale_id`.
8787
type: boolean
8888
example: false
8989
source_locale_id:

paths/locales/download.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,20 +100,24 @@ parameters:
100100
in: query
101101
schema:
102102
type: boolean
103-
- 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`.
104-
example:
105-
name: fallback_locale_id
103+
- name: fallback_locale_id
104+
description: |
105+
If a key has no translation in the locale being downloaded, the translation in the fallback locale will be used.
106+
Provide the ID of the locale that should be used as the fallback.
107+
Requires `include_empty_translations` to be set to `true`. Mutually exclusive with `use_locale_fallback`.
106108
in: query
107109
schema:
108110
type: string
109-
- description: |
111+
example:
112+
- name: use_locale_fallback
113+
description: |
110114
If a key has no translation in the locale being downloaded, the translation in the fallback locale will be used.
111115
Fallback locale is defined in [locale's settings](/en/api/strings/locales/update-a-locale#body-fallback-locale-id).
112-
Requires `include_empty_translations` to be set to `true`.
113-
name: use_locale_fallback
116+
Requires `include_empty_translations` to be set to `true`. Mutually exclusive with `fallback_locale_id`.
114117
in: query
115118
schema:
116119
type: boolean
120+
example: true
117121
- 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.
118122
example:
119123
name: source_locale_id

0 commit comments

Comments
 (0)