From 0792954e345925b3e3b2ebb733367e138375978e Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Tue, 27 Feb 2024 13:16:21 +0100 Subject: make deinflections language-specific (#720) * abstract deinflections * undo redundant changes * remove cast * MultiLanguageTransformer * comments * comments --- types/ext/language-descriptors.d.ts | 1 + types/ext/language-transformer-internal.d.ts | 8 ++++++++ types/ext/language.d.ts | 1 + types/ext/offscreen.d.ts | 2 +- 4 files changed, 11 insertions(+), 1 deletion(-) (limited to 'types/ext') diff --git a/types/ext/language-descriptors.d.ts b/types/ext/language-descriptors.d.ts index ca457721..79668da4 100644 --- a/types/ext/language-descriptors.d.ts +++ b/types/ext/language-descriptors.d.ts @@ -32,6 +32,7 @@ type LanguageDescriptor; + +export type LanguageTransformDescriptorInternal = { + transforms: Transform[]; + conditionTypeToConditionFlagsMap: ConditionTypeToConditionFlagsMap; + partOfSpeechToConditionFlagsMap: ConditionTypeToConditionFlagsMap; +}; diff --git a/types/ext/language.d.ts b/types/ext/language.d.ts index 8e5a5c70..a50d3d4b 100644 --- a/types/ext/language.d.ts +++ b/types/ext/language.d.ts @@ -51,4 +51,5 @@ export type LanguageSummary = { name: string; iso: string; exampleText: string; + languageTransformsFile?: string; }; diff --git a/types/ext/offscreen.d.ts b/types/ext/offscreen.d.ts index 443e0b64..777756b9 100644 --- a/types/ext/offscreen.d.ts +++ b/types/ext/offscreen.d.ts @@ -52,7 +52,7 @@ type ApiSurface = { }; translatorPrepareOffscreen: { params: { - descriptor: LanguageTransformDescriptor; + descriptors: LanguageTransformDescriptor[]; }; return: void; }; -- cgit v1.2.3