Skip to content

Commit d9fda2e

Browse files
author
Phrase
committed
1 parent 0132157 commit d9fda2e

File tree

226 files changed

+374
-260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+374
-260
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,6 @@ src/test/java/com/phrase/client/api/JobLocalesApiTest.java
587587
src/test/java/com/phrase/client/api/JobTemplateLocalesApiTest.java
588588
src/test/java/com/phrase/client/api/JobTemplatesApiTest.java
589589
src/test/java/com/phrase/client/api/JobsApiTest.java
590-
src/test/java/com/phrase/client/api/KeysApiTest.java
591590
src/test/java/com/phrase/client/api/KeysFigmaAttachmentsApiTest.java
592591
src/test/java/com/phrase/client/api/LinkedKeysApiTest.java
593592
src/test/java/com/phrase/client/api/LocaleDownloadsApiTest.java

api/openapi.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5984,6 +5984,19 @@ paths:
59845984
properties: {}
59855985
type: object
59865986
style: deepObject
5987+
- description: Locale IDs or locale names
5988+
example:
5989+
- de
5990+
- en
5991+
explode: true
5992+
in: query
5993+
name: locale_ids
5994+
required: false
5995+
schema:
5996+
items:
5997+
type: string
5998+
type: array
5999+
style: form
59876000
responses:
59886001
"200":
59896002
content:
@@ -30518,6 +30531,7 @@ components:
3051830531
username: joe.doe
3051930532
name: Joe Doe
3052030533
job_tag_name: Job_123
30534+
source_translations_updated_at: 2020-01-01T00:00:00Z
3052130535
source_locale:
3052230536
id: abcd1234cdef1234abcd1234cdef1235
3052330537
name: de-DE
@@ -30534,6 +30548,9 @@ components:
3053430548
$ref: '#/components/schemas/user_preview'
3053530549
job_tag_name:
3053630550
type: string
30551+
source_translations_updated_at:
30552+
format: date-time
30553+
type: string
3053730554
source_locale:
3053830555
$ref: '#/components/schemas/locale_preview'
3053930556
locales:

docs/JobDetails.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
1818
**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
1919
**owner** | [**UserPreview**](UserPreview.md) | | [optional]
2020
**jobTagName** | **String** | | [optional]
21+
**sourceTranslationsUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
2122
**sourceLocale** | [**LocalePreview**](LocalePreview.md) | | [optional]
2223
**locales** | [**List<LocalePreview>**](LocalePreview.md) | | [optional]
2324
**keys** | [**List<KeyPreview>**](KeyPreview.md) | | [optional]

docs/LocalesApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ null (empty response body)
258258

259259
<a name="localeDownload"></a>
260260
# **localeDownload**
261-
> File localeDownload(projectId, id, xPhraseAppOTP, ifModifiedSince, ifNoneMatch, branch, fileFormat, tags, tag, includeEmptyTranslations, excludeEmptyZeroForms, includeTranslatedKeys, keepNotranslateTags, convertEmoji, formatOptions, encoding, skipUnverifiedTranslations, includeUnverifiedTranslations, useLastReviewedVersion, fallbackLocaleId, sourceLocaleId, translationKeyPrefix, filterByPrefix, customMetadataFilters)
261+
> File localeDownload(projectId, id, xPhraseAppOTP, ifModifiedSince, ifNoneMatch, branch, fileFormat, tags, tag, includeEmptyTranslations, excludeEmptyZeroForms, includeTranslatedKeys, keepNotranslateTags, convertEmoji, formatOptions, encoding, skipUnverifiedTranslations, includeUnverifiedTranslations, useLastReviewedVersion, fallbackLocaleId, sourceLocaleId, translationKeyPrefix, filterByPrefix, customMetadataFilters, localeIds)
262262
263263
Download a locale
264264

@@ -314,8 +314,9 @@ public class Example {
314314
String translationKeyPrefix = "prefix_"; // String | Download all translation keys, and remove the specified prefix where possible. Warning: this may create duplicate key names if other keys share the same name after the prefix is removed.
315315
Boolean filterByPrefix = true; // Boolean | Only download translation keys containing the specified prefix, and remove the prefix from the generated file.
316316
Object customMetadataFilters = null; // Object | Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
317+
List<String> localeIds = Arrays.asList(); // List<String> | Locale IDs or locale names
317318
try {
318-
File result = apiInstance.localeDownload(projectId, id, xPhraseAppOTP, ifModifiedSince, ifNoneMatch, branch, fileFormat, tags, tag, includeEmptyTranslations, excludeEmptyZeroForms, includeTranslatedKeys, keepNotranslateTags, convertEmoji, formatOptions, encoding, skipUnverifiedTranslations, includeUnverifiedTranslations, useLastReviewedVersion, fallbackLocaleId, sourceLocaleId, translationKeyPrefix, filterByPrefix, customMetadataFilters);
319+
File result = apiInstance.localeDownload(projectId, id, xPhraseAppOTP, ifModifiedSince, ifNoneMatch, branch, fileFormat, tags, tag, includeEmptyTranslations, excludeEmptyZeroForms, includeTranslatedKeys, keepNotranslateTags, convertEmoji, formatOptions, encoding, skipUnverifiedTranslations, includeUnverifiedTranslations, useLastReviewedVersion, fallbackLocaleId, sourceLocaleId, translationKeyPrefix, filterByPrefix, customMetadataFilters, localeIds);
319320
System.out.println(result);
320321
} catch (ApiException e) {
321322
System.err.println("Exception when calling LocalesApi#localeDownload");
@@ -356,6 +357,7 @@ Name | Type | Description | Notes
356357
**translationKeyPrefix** | **String**| Download all translation keys, and remove the specified prefix where possible. Warning: this may create duplicate key names if other keys share the same name after the prefix is removed. | [optional]
357358
**filterByPrefix** | **Boolean**| Only download translation keys containing the specified prefix, and remove the prefix from the generated file. | [optional]
358359
**customMetadataFilters** | [**Object**](.md)| Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download. | [optional]
360+
**localeIds** | [**List&lt;String&gt;**](String.md)| Locale IDs or locale names | [optional]
359361

360362
### Return type
361363

src/main/java/com/phrase/client/ApiException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.util.Map;
1616
import java.util.List;
1717

18-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-29T15:57:18.834533290Z[Etc/UTC]")
18+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-17T08:54:37.526605703Z[Etc/UTC]")
1919
public class ApiException extends Exception {
2020
private int code = 0;
2121
private Map<String, List<String>> responseHeaders = null;

src/main/java/com/phrase/client/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-29T15:57:18.834533290Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-17T08:54:37.526605703Z[Etc/UTC]")
1616
public class Configuration {
1717
private static ApiClient defaultApiClient = new ApiClient();
1818

src/main/java/com/phrase/client/Pair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-29T15:57:18.834533290Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-17T08:54:37.526605703Z[Etc/UTC]")
1616
public class Pair {
1717
private String name = "";
1818
private String value = "";

src/main/java/com/phrase/client/StringUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-29T15:57:18.834533290Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-17T08:54:37.526605703Z[Etc/UTC]")
1616
public class StringUtil {
1717
/**
1818
* Check if the given array contains the given value (with case-insensitive comparison).

0 commit comments

Comments
 (0)