vanilla-jui 1.5.27 → 1.5.28
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.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/flow.ts +6 -4
- package/src/locales/index.ts +2 -0
package/package.json
CHANGED
package/src/components/flow.ts
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
resolveProps,
|
|
13
13
|
validateParam,
|
|
14
14
|
} from '../utilities/types.ts';
|
|
15
|
+
import { translate } from '../utilities/locale.ts';
|
|
15
16
|
|
|
16
17
|
export type FlowData = Record<string, unknown>;
|
|
17
18
|
export type FlowPayload = FlowData | null;
|
|
@@ -443,10 +444,11 @@ const FLOW_PROPS_SCHEMA = {
|
|
|
443
444
|
normalize: (value: unknown) => {
|
|
444
445
|
const text = isPlainObject(value) ? (value as Partial<FlowText>) : {};
|
|
445
446
|
return {
|
|
446
|
-
back: typeof text.back === 'string' ? text.back : '
|
|
447
|
-
next: typeof text.next === 'string' ? text.next : 'Next',
|
|
448
|
-
finish:
|
|
449
|
-
|
|
447
|
+
back: typeof text.back === 'string' ? text.back : translate('b'),
|
|
448
|
+
next: typeof text.next === 'string' ? text.next : translate('Next'),
|
|
449
|
+
finish:
|
|
450
|
+
typeof text.finish === 'string' ? text.finish : translate('Finish'),
|
|
451
|
+
reset: typeof text.reset === 'string' ? text.reset : translate('Reset'),
|
|
450
452
|
};
|
|
451
453
|
},
|
|
452
454
|
},
|