@nmorph/nmorph-ui-kit 1.0.30 → 1.0.32

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,3 +1,45 @@
1
1
  import { TranslateType } from '../../../types';
2
2
 
3
+ export declare const zh: {
4
+ sun: string;
5
+ mon: string;
6
+ tue: string;
7
+ wed: string;
8
+ thu: string;
9
+ fri: string;
10
+ sat: string;
11
+ jan: string;
12
+ feb: string;
13
+ mar: string;
14
+ apr: string;
15
+ may: string;
16
+ jun: string;
17
+ jul: string;
18
+ aug: string;
19
+ sep: string;
20
+ oct: string;
21
+ nov: string;
22
+ dec: string;
23
+ };
24
+ export declare const ru: {
25
+ sun: string;
26
+ mon: string;
27
+ tue: string;
28
+ wed: string;
29
+ thu: string;
30
+ fri: string;
31
+ sat: string;
32
+ jan: string;
33
+ feb: string;
34
+ mar: string;
35
+ apr: string;
36
+ may: string;
37
+ jun: string;
38
+ jul: string;
39
+ aug: string;
40
+ sep: string;
41
+ oct: string;
42
+ nov: string;
43
+ dec: string;
44
+ };
3
45
  export declare const translate: TranslateType;
@@ -3,8 +3,6 @@ import { I18n } from 'vue-i18n';
3
3
 
4
4
  export declare const useNmorphTranslation: (data: INmorphApplyTranslation) => I18n<{
5
5
  en: TranslateMessages;
6
- ru: TranslateMessages;
7
- zh: TranslateMessages;
8
- } | {
9
- en: TranslateMessages;
6
+ ru?: TranslateMessages;
7
+ zh?: TranslateMessages;
10
8
  }, {}, {}, Locale | "en" | "ru" | "zh", true>;
@@ -5,4 +5,5 @@ export * from './types/index.ts';
5
5
  export * from './outside-hooks';
6
6
  export * from './outside-utils';
7
7
  export * from './components';
8
+ export * from './locales';
8
9
  export default library;
@@ -117,7 +117,9 @@ export declare enum Locale {
117
117
  ru = "ru",
118
118
  zh = "zh"
119
119
  }
120
- export type TranslateType = Record<keyof typeof Locale, TranslateMessages>;
120
+ export type TranslateType = Partial<Record<keyof typeof Locale, TranslateMessages>> & {
121
+ en: TranslateMessages;
122
+ };
121
123
  export interface TranslateMessages {
122
124
  [key: string]: TranslateMessages | string;
123
125
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nmorph/nmorph-ui-kit",
3
3
  "type": "module",
4
4
  "private": false,
5
- "version": "1.0.30",
5
+ "version": "1.0.32",
6
6
  "license": "MIT",
7
7
  "engines": {
8
8
  "node": "18.13.0",