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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-jui",
3
- "version": "1.5.27",
3
+ "version": "1.5.28",
4
4
  "private": false,
5
5
  "description": "A lightweight, reactive, and fully customizable vanilla JS UI library.",
6
6
  "keywords": [
@@ -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 : 'Back',
447
- next: typeof text.next === 'string' ? text.next : 'Next',
448
- finish: typeof text.finish === 'string' ? text.finish : 'Finish',
449
- reset: typeof text.reset === 'string' ? text.reset : 'Reset',
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
  },
@@ -48,5 +48,7 @@ export default {
48
48
  'Loading...': '加载中...',
49
49
  'Go to previous page': '访问上一页',
50
50
  'Go to next page': '访问下一页',
51
+ Next: '下一步',
52
+ Finish: '完成',
51
53
  },
52
54
  };