From fd1e0778a26fdc3981425d6543e0360fb1fc0c9a Mon Sep 17 00:00:00 2001 From: gsharp-aai Date: Fri, 31 Jul 2026 12:18:43 -0400 Subject: [PATCH] feat: add localization option to language_detection_options Exposes the `localization` option on `language_detection_options`. When language detection resolves to English, `localization` renders the transcript in a regional spelling variant (e.g. "en_au", "en_uk"). --- package.json | 2 +- src/types/openapi.generated.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5d3de18..c14271d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "assemblyai", - "version": "4.36.4", + "version": "4.36.5", "description": "The AssemblyAI JavaScript SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.", "engines": { "node": ">=18" diff --git a/src/types/openapi.generated.ts b/src/types/openapi.generated.ts index 55bc5f8..3e4365d 100644 --- a/src/types/openapi.generated.ts +++ b/src/types/openapi.generated.ts @@ -1726,6 +1726,10 @@ export type LanguageDetectionOptions = { * The language detection model to use. */ language_detection_model?: string | null; + /** + * Locale codes (e.g. ["en_au"]) to render detected English in a regional spelling variant. At most one locale per language. + */ + localization?: string[] | null; }; /**