@umituz/web-dashboard 4.1.0 → 4.1.1
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/package.json +1 -1
- package/src/i18n/defaultT.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/web-dashboard",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Installable app skeleton for the fleet — layouts, auth, onboarding, analytics (dependency-free SVG charts), calendar, i18n injection, permissions/session/module registry; ships its own udb-* stylesheet and --u-* tokens",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
package/src/i18n/defaultT.ts
CHANGED
|
@@ -29,6 +29,6 @@ const interpolate = (text: string, params?: Record<string, unknown>): string =>
|
|
|
29
29
|
|
|
30
30
|
export const defaultT: TranslateFn = (key, params) => {
|
|
31
31
|
const segments = key.split(".").filter(Boolean);
|
|
32
|
-
const source = segments
|
|
32
|
+
const source = segments[segments.length - 1] ?? key;
|
|
33
33
|
return interpolate(humanizeSegment(source), params);
|
|
34
34
|
};
|