builder-settings-types 0.0.412 → 0.0.414
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.
|
@@ -5,6 +5,7 @@ export interface TranslationRow {
|
|
|
5
5
|
value: MultiLanguageValue;
|
|
6
6
|
group?: string;
|
|
7
7
|
settingTitle?: string;
|
|
8
|
+
keyPath?: string;
|
|
8
9
|
}
|
|
9
10
|
export interface ComponentInstanceData {
|
|
10
11
|
component: string;
|
|
@@ -12,6 +13,7 @@ export interface ComponentInstanceData {
|
|
|
12
13
|
}
|
|
13
14
|
export type TitleLookupFn = (fullPath: string) => string | undefined;
|
|
14
15
|
export declare class ExcelTranslationService {
|
|
16
|
+
private static getComponentGroup;
|
|
15
17
|
static exportToExcel(translations: TranslationRow[], languages: string[], filename?: string): void;
|
|
16
18
|
/**
|
|
17
19
|
* Extract the setting key from a nested path
|
|
@@ -36,8 +38,8 @@ export declare class ExcelTranslationService {
|
|
|
36
38
|
* This exports only the translations from the provided components, not from global registry
|
|
37
39
|
* @param titleLookup - Optional function to get human-readable titles from registered instances
|
|
38
40
|
*/
|
|
39
|
-
static exportFromComponentInstances(componentInstances: ComponentInstanceData[], filename?: string, titleLookup?: TitleLookupFn): void;
|
|
40
|
-
static importToComponentInstances(file: File, componentInstances: ComponentInstanceData[]): Promise<ComponentInstanceData[]>;
|
|
41
|
+
static exportFromComponentInstances(componentInstances: ComponentInstanceData[], filename?: string, titleLookup?: TitleLookupFn, languagesOverride?: string[]): void;
|
|
42
|
+
static importToComponentInstances(file: File, componentInstances: ComponentInstanceData[], titlePathResolver?: (componentPath: string, title: string) => string | undefined, languagesOverride?: string[]): Promise<ComponentInstanceData[]>;
|
|
41
43
|
/**
|
|
42
44
|
* Recursively update settings with imported translations
|
|
43
45
|
*/
|
package/package.json
CHANGED