Skip to content
Open
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
9 changes: 9 additions & 0 deletions apps/web/__tests__/unit/transcribe-language.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ describe("AI generation language support", () => {
expect(parseAiGenerationLanguage("ro")).toBe("ro");
});

it("exposes Danish for AI generation and transcription", () => {
expect(AI_GENERATION_LANGUAGES.da).toBe("Danish");
expect(isAiGenerationLanguage("da")).toBe(true);
expect(parseAiGenerationLanguage("da")).toBe("da");
expect(getAssemblyAITranscriptionOptions("da")).toMatchObject({
language_code: "da",
});
});

it("does not expose unsupported transcription languages", () => {
expect(AI_GENERATION_LANGUAGES).not.toHaveProperty("pa");
expect(isAiGenerationLanguage("pa")).toBe(false);
Expand Down
1 change: 1 addition & 0 deletions apps/web/lib/assemblyai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const ASSEMBLYAI_SUPPORTED_LANGUAGES = [
"pt",
"it",
"nl",
"da",
"pl",
"ro",
"sk",
Expand Down
1 change: 1 addition & 0 deletions packages/web-domain/src/Agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ export const AgentAiGenerationLanguage = Schema.Literal(
"pt",
"it",
"nl",
"da",
"pl",
"ro",
"sk",
Expand Down
3 changes: 3 additions & 0 deletions packages/web-domain/src/Language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const SUPPORTED_LANGUAGES = {
pt: "Portuguese",
it: "Italian",
nl: "Dutch",
da: "Danish",
pl: "Polish",
ro: "Romanian",
sk: "Slovak",
Expand Down Expand Up @@ -40,6 +41,7 @@ export const AI_GENERATION_LANGUAGE_CODES = [
"pt",
"it",
"nl",
"da",
"pl",
"ro",
"sk",
Expand Down Expand Up @@ -76,6 +78,7 @@ export const AI_GENERATION_LANGUAGES = {
pt: SUPPORTED_LANGUAGES.pt,
it: SUPPORTED_LANGUAGES.it,
nl: SUPPORTED_LANGUAGES.nl,
da: SUPPORTED_LANGUAGES.da,
pl: SUPPORTED_LANGUAGES.pl,
ro: SUPPORTED_LANGUAGES.ro,
sk: SUPPORTED_LANGUAGES.sk,
Expand Down