@designcrowd/library.brand-page 5.10.9-data-id-2 → 5.10.9
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i18next from 'i18next';
|
|
2
|
-
import {
|
|
2
|
+
import { setLocaleAsync as setSharedLocaleAsync } from '@designcrowd/fe-shared-lib';
|
|
3
3
|
const fallbackLocale = 'en-US';
|
|
4
4
|
const supportedLocales = [
|
|
5
5
|
'en-US',
|
|
@@ -36,7 +36,7 @@ const setLocaleAsync = async (locale) => {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
await i18next.addResourceBundle(localeToUse, 'bp', { ...languageFile });
|
|
39
|
-
await
|
|
39
|
+
await setSharedLocaleAsync(localeToUse);
|
|
40
40
|
};
|
|
41
41
|
const tr = (key, valuesToInterpolate = {}, nameSpace = 'bp') => {
|
|
42
42
|
const translated = i18next.t(key, { ns: nameSpace, ...valuesToInterpolate });
|
package/lib/src/index.mjs
CHANGED
|
@@ -9958,7 +9958,7 @@ const Y61 = /* @__PURE__ */ v(W61, [["render", K61]]), J61 = {
|
|
|
9958
9958
|
return e.replace(/^[-]*(.)/, (t, n) => n.toUpperCase()).replace(/[-]+(.)/g, (t, n) => ` ${n.toUpperCase()}`);
|
|
9959
9959
|
}
|
|
9960
9960
|
}
|
|
9961
|
-
}, X61 = ["viewBox"
|
|
9961
|
+
}, X61 = ["viewBox"], Q61 = ["id"], e51 = ["id"];
|
|
9962
9962
|
function t51(e, t, n, i, r, s) {
|
|
9963
9963
|
return C(), h("div", {
|
|
9964
9964
|
class: $(s.computedClass)
|
|
@@ -9980,8 +9980,7 @@ function t51(e, t, n, i, r, s) {
|
|
|
9980
9980
|
}]),
|
|
9981
9981
|
role: "graphics-symbol",
|
|
9982
9982
|
"aria-labelledby": "title",
|
|
9983
|
-
"aria-describedby": "desc"
|
|
9984
|
-
"data-id": `${n.name}-${r.id}-title`
|
|
9983
|
+
"aria-describedby": "desc"
|
|
9985
9984
|
}, [
|
|
9986
9985
|
s.title ? (C(), h("title", {
|
|
9987
9986
|
key: 0,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designcrowd/library.brand-page",
|
|
3
3
|
"description": "A collection of Maker/Designer applications",
|
|
4
|
-
"version": "5.10.9
|
|
4
|
+
"version": "5.10.9",
|
|
5
5
|
"author": "Design.com Eng",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@ckpack/vue-color": "1.4.1",
|
|
58
|
-
"@designcrowd/fe-shared-lib": "1.2.2
|
|
58
|
+
"@designcrowd/fe-shared-lib": "1.2.2",
|
|
59
59
|
"@pinia/nuxt": "0.11.0",
|
|
60
60
|
"@storybook/react": "9.0.4",
|
|
61
61
|
"@tiptap/extension-character-count": "2.11.7",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i18next from 'i18next';
|
|
2
|
-
import {
|
|
2
|
+
import { setLocaleAsync as setSharedLocaleAsync } from '@designcrowd/fe-shared-lib';
|
|
3
3
|
|
|
4
4
|
const fallbackLocale = 'en-US';
|
|
5
5
|
|
|
@@ -48,7 +48,7 @@ const setLocaleAsync = async (locale: LocaleTypes) => {
|
|
|
48
48
|
|
|
49
49
|
await i18next.addResourceBundle(localeToUse, 'bp', { ...languageFile });
|
|
50
50
|
|
|
51
|
-
await
|
|
51
|
+
await setSharedLocaleAsync(localeToUse);
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
const tr = (key: string, valuesToInterpolate = {}, nameSpace = 'bp') => {
|