@nocobase/plugin-localization 2.1.0-beta.34 → 2.1.0-beta.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,14 @@
8
8
  */
9
9
  import { TaskType } from '@nocobase/plugin-async-task-manager';
10
10
  export declare const LOCALIZATION_AI_TRANSLATE_TASK_TYPE = "localization:ai-translate";
11
+ type ReferenceLocaleConfig = {
12
+ primary?: string;
13
+ fallback?: string;
14
+ };
15
+ export type TranslationReferenceLocales = {
16
+ builtIn?: ReferenceLocaleConfig;
17
+ custom?: ReferenceLocaleConfig;
18
+ };
11
19
  export declare class LocalizationAITranslateTask extends TaskType {
12
20
  static type: string;
13
21
  execute(): Promise<{
@@ -15,17 +23,17 @@ export declare class LocalizationAITranslateTask extends TaskType {
15
23
  total: number;
16
24
  }>;
17
25
  private countTexts;
18
- private buildFindTextsOptions;
19
- private normalizeTextRecord;
20
26
  private getLocaleReferences;
27
+ private getReferenceMaps;
28
+ private pickDbReference;
21
29
  private getSystemDefaultLocale;
22
- private getModuleName;
23
- private isBuiltInText;
24
- private getBuiltInReference;
25
- private runTranslationWorker;
30
+ private resolveReferenceLocales;
31
+ private buildTranslationItems;
32
+ private translateItem;
26
33
  private translateText;
34
+ private getEmployeeSystemPrompt;
27
35
  private buildProviderContext;
28
- private buildTranslationTerms;
29
36
  private getLanguageName;
30
37
  private extractTextContent;
31
38
  }
39
+ export {};