@budibase/shared-core 3.23.28 → 3.23.30
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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +3 -3
- package/dist/translations/index.d.ts +12 -0
- package/dist/translations/passwordModal.d.ts +1 -0
- package/dist/translations/picker.d.ts +1 -0
- package/dist/translations/profileModal.d.ts +1 -0
- package/dist/translations/types.d.ts +18 -0
- package/dist/translations/userMenu.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { userMenuTranslations } from "./userMenu";
|
|
2
|
+
import { profileModalTranslations } from "./profileModal";
|
|
3
|
+
import { passwordModalTranslations } from "./passwordModal";
|
|
4
|
+
import { pickerTranslations } from "./picker";
|
|
5
|
+
import type { TranslationCategory, TranslationDefinition, TranslationOverrides } from "./types";
|
|
6
|
+
export * from "./types";
|
|
7
|
+
export { userMenuTranslations, profileModalTranslations, passwordModalTranslations, pickerTranslations, };
|
|
8
|
+
export declare const translations: TranslationDefinition[];
|
|
9
|
+
export declare const UI_TRANSLATIONS: TranslationDefinition[];
|
|
10
|
+
export declare const filterValidTranslationOverrides: (source?: TranslationOverrides | null) => TranslationOverrides;
|
|
11
|
+
export declare const resolveWorkspaceTranslations: (source?: TranslationOverrides | null) => TranslationOverrides;
|
|
12
|
+
export declare const resolveTranslationGroup: (category: TranslationCategory, overrides?: TranslationOverrides | null) => Record<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const passwordModalTranslations: import("./types").TranslationDefinition[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pickerTranslations: import("./types").TranslationDefinition[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const profileModalTranslations: import("./types").TranslationDefinition[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type TranslationCategory = "userMenu" | "profileModal" | "passwordModal" | "picker";
|
|
2
|
+
export interface TranslationDefinitionInput {
|
|
3
|
+
key: string;
|
|
4
|
+
name: string;
|
|
5
|
+
defaultValue: string;
|
|
6
|
+
fullKey?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TranslationDefinition extends Omit<TranslationDefinitionInput, "fullKey"> {
|
|
9
|
+
category: TranslationCategory;
|
|
10
|
+
fullKey: string;
|
|
11
|
+
}
|
|
12
|
+
export type TranslationOverrides = Record<string, string>;
|
|
13
|
+
/**
|
|
14
|
+
* Converts raw translation definitions into fully-qualified definitions
|
|
15
|
+
* by adding category and resolving `fullKey`. If `fullKey` already exists,
|
|
16
|
+
* it is reused; otherwise, it's generated as `category.key`.
|
|
17
|
+
*/
|
|
18
|
+
export declare const createTranslationDefinitions: (category: TranslationCategory, definitions: ReadonlyArray<TranslationDefinitionInput>) => TranslationDefinition[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const userMenuTranslations: import("./types").TranslationDefinition[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/shared-core",
|
|
3
|
-
"version": "3.23.
|
|
3
|
+
"version": "3.23.30",
|
|
4
4
|
"description": "Shared data utils",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "f14a0f7924ce2526ffddd2e9eae9e94eb702aa80"
|
|
41
41
|
}
|