From 9044cfe2a164e4117eb8cfd00a8b71689b387e1b Mon Sep 17 00:00:00 2001 From: Sven Dunemann Date: Wed, 24 Jun 2026 08:38:21 +0200 Subject: [PATCH 1/2] feat(API): Add language_ai_profile to locales Add language_ai_profile parameter to the locale create and update request bodies, and to the locale serializer schema. --- doc/compiled.json | 13 +++++++++++++ paths/locales/create.yaml | 4 ++++ paths/locales/update.yaml | 4 ++++ schemas/locale.yaml | 2 ++ 4 files changed, 23 insertions(+) diff --git a/doc/compiled.json b/doc/compiled.json index c08034f8..27e25f6a 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -1682,6 +1682,9 @@ "updated_at": { "type": "string", "format": "date-time" + }, + "language_ai_profile": { + "type": "string" } }, "example": { @@ -9168,6 +9171,11 @@ "description": "If set, translations for this locale will be fetched automatically, right after creation.", "type": "boolean", "example": null + }, + "language_ai_profile": { + "description": "Identifier of the Language AI profile to use for this locale.", + "type": "string", + "example": "abcd1234abcd1234abcd1234abcd1234" } } } @@ -9388,6 +9396,11 @@ "description": "If set, translations for this locale will be fetched automatically, right after creation.", "type": "boolean", "example": null + }, + "language_ai_profile": { + "description": "Identifier of the Language AI profile to use for this locale.", + "type": "string", + "example": "abcd1234abcd1234abcd1234abcd1234" } } } diff --git a/paths/locales/create.yaml b/paths/locales/create.yaml index 297a3a3e..e941028d 100644 --- a/paths/locales/create.yaml +++ b/paths/locales/create.yaml @@ -103,4 +103,8 @@ requestBody: description: If set, translations for this locale will be fetched automatically, right after creation. type: boolean example: + language_ai_profile: + description: Identifier of the Language AI profile to use for this locale. + type: string + example: abcd1234abcd1234abcd1234abcd1234 x-cli-version: '2.5' diff --git a/paths/locales/update.yaml b/paths/locales/update.yaml index f1ba8404..9752fe8e 100644 --- a/paths/locales/update.yaml +++ b/paths/locales/update.yaml @@ -102,4 +102,8 @@ requestBody: description: If set, translations for this locale will be fetched automatically, right after creation. type: boolean example: + language_ai_profile: + description: Identifier of the Language AI profile to use for this locale. + type: string + example: abcd1234abcd1234abcd1234abcd1234 x-cli-version: '2.5' diff --git a/schemas/locale.yaml b/schemas/locale.yaml index 4c86a40c..da35ce53 100644 --- a/schemas/locale.yaml +++ b/schemas/locale.yaml @@ -33,6 +33,8 @@ locale: updated_at: type: string format: date-time + language_ai_profile: + type: string example: id: abcd1234cdef1234abcd1234cdef1234 name: de From f9fd1fa640b9e0df1f5cf155676835931453bbcf Mon Sep 17 00:00:00 2001 From: Sven Dunemann Date: Wed, 24 Jun 2026 08:54:45 +0200 Subject: [PATCH 2/2] improve --- doc/compiled.json | 7 ++++--- schemas/locale.yaml | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/compiled.json b/doc/compiled.json index 27e25f6a..35947f1f 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -1675,6 +1675,9 @@ "fallback_locale": { "$ref": "#/components/schemas/locale_preview" }, + "language_ai_profile": { + "type": "string" + }, "created_at": { "type": "string", "format": "date-time" @@ -1682,9 +1685,6 @@ "updated_at": { "type": "string", "format": "date-time" - }, - "language_ai_profile": { - "type": "string" } }, "example": { @@ -1713,6 +1713,7 @@ "name": "en", "code": "en-GB" }, + "language_ai_profile": "abcd1234abcd1234abcd1234abcd1234", "created_at": "2015-01-28T09:52:53Z", "updated_at": "2015-01-28T09:52:53Z" } diff --git a/schemas/locale.yaml b/schemas/locale.yaml index da35ce53..ca060bcc 100644 --- a/schemas/locale.yaml +++ b/schemas/locale.yaml @@ -27,14 +27,14 @@ locale: "$ref": "./locale_preview.yaml#/locale_preview" fallback_locale: "$ref": "./locale_preview.yaml#/locale_preview" + language_ai_profile: + type: string created_at: type: string format: date-time updated_at: type: string format: date-time - language_ai_profile: - type: string example: id: abcd1234cdef1234abcd1234cdef1234 name: de @@ -57,5 +57,6 @@ locale: id: abcd1234cdef1234abcd1234cdef1234 name: en code: en-GB + language_ai_profile: abcd1234abcd1234abcd1234abcd1234 created_at: '2015-01-28T09:52:53Z' updated_at: '2015-01-28T09:52:53Z'