@etsoo/appscript 1.3.43 → 1.3.47

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.
Files changed (45) hide show
  1. package/__tests__/app/CoreApp.ts +5 -5
  2. package/lib/cjs/app/CoreApp.js +3 -3
  3. package/lib/cjs/erp/dto/OrgViewDto.d.ts +4 -0
  4. package/lib/cjs/i18n/{zhCN.d.ts → en.d.ts} +2 -2
  5. package/lib/cjs/i18n/{enUS.js → en.js} +8 -8
  6. package/lib/cjs/i18n/{en-US.json → en.json} +0 -0
  7. package/lib/cjs/i18n/{zh-CN.json → zh-Hans.json} +0 -0
  8. package/lib/cjs/i18n/{zh-HK.json → zh-Hant.json} +0 -0
  9. package/lib/cjs/i18n/{zhHK.d.ts → zhHans.d.ts} +2 -2
  10. package/lib/cjs/i18n/{zhCN.js → zhHans.js} +8 -8
  11. package/lib/cjs/i18n/zhHant.d.ts +7 -0
  12. package/lib/cjs/i18n/{zhHK.js → zhHant.js} +8 -8
  13. package/lib/cjs/index.d.ts +3 -3
  14. package/lib/cjs/index.js +3 -3
  15. package/lib/mjs/app/CoreApp.js +3 -3
  16. package/lib/mjs/erp/dto/OrgViewDto.d.ts +4 -0
  17. package/lib/{cjs/i18n/enUS.d.ts → mjs/i18n/en.d.ts} +2 -2
  18. package/lib/mjs/i18n/en.js +12 -0
  19. package/lib/mjs/i18n/{en-US.json → en.json} +0 -0
  20. package/lib/mjs/i18n/{zh-CN.json → zh-Hans.json} +0 -0
  21. package/lib/mjs/i18n/{zh-HK.json → zh-Hant.json} +0 -0
  22. package/lib/mjs/i18n/{enUS.d.ts → zhHans.d.ts} +2 -2
  23. package/lib/mjs/i18n/zhHans.js +12 -0
  24. package/lib/mjs/i18n/zhHant.d.ts +7 -0
  25. package/lib/mjs/i18n/zhHant.js +12 -0
  26. package/lib/mjs/index.d.ts +3 -3
  27. package/lib/mjs/index.js +3 -3
  28. package/package.json +3 -3
  29. package/src/app/CoreApp.ts +5 -4
  30. package/src/erp/dto/OrgViewDto.ts +5 -0
  31. package/src/i18n/{en-US.json → en.json} +0 -0
  32. package/src/i18n/en.ts +14 -0
  33. package/src/i18n/{zh-CN.json → zh-Hans.json} +0 -0
  34. package/src/i18n/{zh-HK.json → zh-Hant.json} +0 -0
  35. package/src/i18n/zhHans.ts +14 -0
  36. package/src/i18n/zhHant.ts +16 -0
  37. package/src/index.ts +3 -3
  38. package/lib/mjs/i18n/enUS.js +0 -12
  39. package/lib/mjs/i18n/zhCN.d.ts +0 -7
  40. package/lib/mjs/i18n/zhCN.js +0 -12
  41. package/lib/mjs/i18n/zhHK.d.ts +0 -7
  42. package/lib/mjs/i18n/zhHK.js +0 -12
  43. package/src/i18n/enUS.ts +0 -14
  44. package/src/i18n/zhCN.ts +0 -14
  45. package/src/i18n/zhHK.ts +0 -14
@@ -10,17 +10,17 @@ import { ApiAuthorizationScheme, createClient } from '@etsoo/restclient';
10
10
  import { DataTypes, DomUtils, Utils, WindowStorage } from '@etsoo/shared';
11
11
  import {
12
12
  AddressApi,
13
- enUS,
13
+ en,
14
14
  ExternalSettings,
15
15
  IUser,
16
16
  OrgApi,
17
17
  PublicApi,
18
- UserRole
18
+ UserRole,
19
+ zhHans
19
20
  } from '../../src';
20
21
  import { AddressUtils } from '../../src/address/AddressUtils';
21
22
  import { IAppSettings } from '../../src/app/AppSettings';
22
23
  import { CoreApp } from '../../src/app/CoreApp';
23
- import { zhCN } from '../../src/i18n/zhCN';
24
24
  import { InitCallResultData } from '../../src/result/InitCallResult';
25
25
 
26
26
  // Detected country or region
@@ -30,7 +30,7 @@ const { detectedCountry } = DomUtils;
30
30
  const { detectedCulture } = DomUtils;
31
31
 
32
32
  // Supported cultures
33
- const supportedCultures: DataTypes.CultureDefinition[] = [zhCN({}), enUS({})];
33
+ const supportedCultures: DataTypes.CultureDefinition[] = [zhHans({}), en({})];
34
34
 
35
35
  // Supported regions
36
36
  const supportedRegions = ['CN'];
@@ -112,7 +112,7 @@ class CoreAppTest extends CoreApp<
112
112
  currentCulture: DomUtils.getCulture(
113
113
  supportedCultures,
114
114
  detectedCulture
115
- )!
115
+ )![0]
116
116
  }),
117
117
  createClient(),
118
118
  container,
@@ -534,9 +534,9 @@ class CoreApp {
534
534
  */
535
535
  checkLanguage(language) {
536
536
  if (language) {
537
- const item = this.settings.cultures.find((c) => { var _a; return c.name === language || ((_a = c.compatibleName) === null || _a === void 0 ? void 0 : _a.includes(language)); });
538
- if (item)
539
- return item.name;
537
+ const [cultrue, match] = shared_1.DomUtils.getCulture(this.settings.cultures, language);
538
+ if (cultrue != null && match != shared_1.DomUtils.CultureMatch.Default)
539
+ return cultrue.name;
540
540
  }
541
541
  // Default language
542
542
  return this.culture;
@@ -52,6 +52,10 @@ export type OrgViewDto = {
52
52
  * Entity status
53
53
  */
54
54
  entityStatus: EntityStatus;
55
+ /**
56
+ * Parent organization id
57
+ */
58
+ parentId?: number;
55
59
  /**
56
60
  * Creation
57
61
  */
@@ -1,7 +1,7 @@
1
1
  import { DataTypes } from '@etsoo/shared';
2
2
  /**
3
- * Get zh-CN cultrue
3
+ * Get en neutral culture
4
4
  * @param localResources Local resources
5
5
  * @returns Full culture
6
6
  */
7
- export declare const zhCN: (localResources: {}) => DataTypes.CultureDefinition;
7
+ export declare const en: (localResources: object) => DataTypes.CultureDefinition;
@@ -3,17 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.enUS = void 0;
7
- const en_US_json_1 = __importDefault(require("./en-US.json"));
6
+ exports.en = void 0;
7
+ const en_json_1 = __importDefault(require("./en.json"));
8
8
  /**
9
- * Get en-US cultrue
9
+ * Get en neutral culture
10
10
  * @param localResources Local resources
11
11
  * @returns Full culture
12
12
  */
13
- const enUS = (localResources) => ({
14
- name: 'en-US',
13
+ const en = (localResources) => ({
14
+ name: 'en',
15
15
  label: 'English',
16
- resources: { ...en_US_json_1.default, ...localResources },
17
- compatibleName: ['en-CA', 'en-AU', 'en-NZ', 'en-GB', 'en-IE']
16
+ resources: { ...en_json_1.default, ...localResources },
17
+ compatibleNames: []
18
18
  });
19
- exports.enUS = enUS;
19
+ exports.en = en;
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  import { DataTypes } from '@etsoo/shared';
2
2
  /**
3
- * Get zh-HK cultrue
3
+ * Get zh-Hans neutral cultrue
4
4
  * @param localResources Local resources
5
5
  * @returns Full culture
6
6
  */
7
- export declare const zhHK: (localResources: object) => DataTypes.CultureDefinition;
7
+ export declare const zhHans: (localResources: {}) => DataTypes.CultureDefinition;
@@ -3,17 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.zhCN = void 0;
7
- const zh_CN_json_1 = __importDefault(require("./zh-CN.json"));
6
+ exports.zhHans = void 0;
7
+ const zh_Hans_json_1 = __importDefault(require("./zh-Hans.json"));
8
8
  /**
9
- * Get zh-CN cultrue
9
+ * Get zh-Hans neutral cultrue
10
10
  * @param localResources Local resources
11
11
  * @returns Full culture
12
12
  */
13
- const zhCN = (localResources) => ({
14
- name: 'zh-CN',
13
+ const zhHans = (localResources) => ({
14
+ name: 'zh-Hans',
15
15
  label: '简体中文',
16
- resources: { ...zh_CN_json_1.default, ...localResources },
17
- compatibleName: ['zh-SG']
16
+ resources: { ...zh_Hans_json_1.default, ...localResources },
17
+ compatibleNames: ['zh-CN', 'zh-SG']
18
18
  });
19
- exports.zhCN = zhCN;
19
+ exports.zhHans = zhHans;
@@ -0,0 +1,7 @@
1
+ import { DataTypes } from '@etsoo/shared';
2
+ /**
3
+ * Get zh-Hant neutral cultrue
4
+ * @param localResources Local resources
5
+ * @returns Full culture
6
+ */
7
+ export declare const zhHant: (localResources: object) => DataTypes.CultureDefinition;
@@ -3,17 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.zhHK = void 0;
7
- const zh_HK_json_1 = __importDefault(require("./zh-HK.json"));
6
+ exports.zhHant = void 0;
7
+ const zh_Hant_json_1 = __importDefault(require("./zh-Hant.json"));
8
8
  /**
9
- * Get zh-HK cultrue
9
+ * Get zh-Hant neutral cultrue
10
10
  * @param localResources Local resources
11
11
  * @returns Full culture
12
12
  */
13
- const zhHK = (localResources) => ({
14
- name: 'zh-HK',
13
+ const zhHant = (localResources) => ({
14
+ name: 'zh-Hant',
15
15
  label: '繁體中文',
16
- resources: { ...zh_HK_json_1.default, ...localResources },
17
- compatibleName: ['zh-TW', 'zh-MO']
16
+ resources: { ...zh_Hant_json_1.default, ...localResources },
17
+ compatibleNames: ['zh-HK', 'zh-TW', 'zh-MO']
18
18
  });
19
- exports.zhHK = zhHK;
19
+ exports.zhHant = zhHant;
@@ -41,9 +41,9 @@ export * from './erp/EntityApi';
41
41
  export * from './erp/MemberApi';
42
42
  export * from './erp/OrgApi';
43
43
  export * from './erp/PublicApi';
44
- export * from './i18n/enUS';
45
- export * from './i18n/zhCN';
46
- export * from './i18n/zhHK';
44
+ export * from './i18n/en';
45
+ export * from './i18n/zhHans';
46
+ export * from './i18n/zhHant';
47
47
  export { ApiAuthorizationScheme, createClient } from '@etsoo/restclient';
48
48
  export type { IApi, IApiPayload } from '@etsoo/restclient';
49
49
  export * from './result/ActionResult';
package/lib/cjs/index.js CHANGED
@@ -67,9 +67,9 @@ __exportStar(require("./erp/MemberApi"), exports);
67
67
  __exportStar(require("./erp/OrgApi"), exports);
68
68
  __exportStar(require("./erp/PublicApi"), exports);
69
69
  // i18n
70
- __exportStar(require("./i18n/enUS"), exports);
71
- __exportStar(require("./i18n/zhCN"), exports);
72
- __exportStar(require("./i18n/zhHK"), exports);
70
+ __exportStar(require("./i18n/en"), exports);
71
+ __exportStar(require("./i18n/zhHans"), exports);
72
+ __exportStar(require("./i18n/zhHant"), exports);
73
73
  // @etsoo/restclient
74
74
  var restclient_1 = require("@etsoo/restclient");
75
75
  Object.defineProperty(exports, "ApiAuthorizationScheme", { enumerable: true, get: function () { return restclient_1.ApiAuthorizationScheme; } });
@@ -531,9 +531,9 @@ export class CoreApp {
531
531
  */
532
532
  checkLanguage(language) {
533
533
  if (language) {
534
- const item = this.settings.cultures.find((c) => { var _a; return c.name === language || ((_a = c.compatibleName) === null || _a === void 0 ? void 0 : _a.includes(language)); });
535
- if (item)
536
- return item.name;
534
+ const [cultrue, match] = DomUtils.getCulture(this.settings.cultures, language);
535
+ if (cultrue != null && match != DomUtils.CultureMatch.Default)
536
+ return cultrue.name;
537
537
  }
538
538
  // Default language
539
539
  return this.culture;
@@ -52,6 +52,10 @@ export type OrgViewDto = {
52
52
  * Entity status
53
53
  */
54
54
  entityStatus: EntityStatus;
55
+ /**
56
+ * Parent organization id
57
+ */
58
+ parentId?: number;
55
59
  /**
56
60
  * Creation
57
61
  */
@@ -1,7 +1,7 @@
1
1
  import { DataTypes } from '@etsoo/shared';
2
2
  /**
3
- * Get en-US cultrue
3
+ * Get en neutral culture
4
4
  * @param localResources Local resources
5
5
  * @returns Full culture
6
6
  */
7
- export declare const enUS: (localResources: object) => DataTypes.CultureDefinition;
7
+ export declare const en: (localResources: object) => DataTypes.CultureDefinition;
@@ -0,0 +1,12 @@
1
+ import enUSResources from './en.json';
2
+ /**
3
+ * Get en neutral culture
4
+ * @param localResources Local resources
5
+ * @returns Full culture
6
+ */
7
+ export const en = (localResources) => ({
8
+ name: 'en',
9
+ label: 'English',
10
+ resources: { ...enUSResources, ...localResources },
11
+ compatibleNames: []
12
+ });
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  import { DataTypes } from '@etsoo/shared';
2
2
  /**
3
- * Get en-US cultrue
3
+ * Get zh-Hans neutral cultrue
4
4
  * @param localResources Local resources
5
5
  * @returns Full culture
6
6
  */
7
- export declare const enUS: (localResources: object) => DataTypes.CultureDefinition;
7
+ export declare const zhHans: (localResources: {}) => DataTypes.CultureDefinition;
@@ -0,0 +1,12 @@
1
+ import zhCNResources from './zh-Hans.json';
2
+ /**
3
+ * Get zh-Hans neutral cultrue
4
+ * @param localResources Local resources
5
+ * @returns Full culture
6
+ */
7
+ export const zhHans = (localResources) => ({
8
+ name: 'zh-Hans',
9
+ label: '简体中文',
10
+ resources: { ...zhCNResources, ...localResources },
11
+ compatibleNames: ['zh-CN', 'zh-SG']
12
+ });
@@ -0,0 +1,7 @@
1
+ import { DataTypes } from '@etsoo/shared';
2
+ /**
3
+ * Get zh-Hant neutral cultrue
4
+ * @param localResources Local resources
5
+ * @returns Full culture
6
+ */
7
+ export declare const zhHant: (localResources: object) => DataTypes.CultureDefinition;
@@ -0,0 +1,12 @@
1
+ import zhHKResources from './zh-Hant.json';
2
+ /**
3
+ * Get zh-Hant neutral cultrue
4
+ * @param localResources Local resources
5
+ * @returns Full culture
6
+ */
7
+ export const zhHant = (localResources) => ({
8
+ name: 'zh-Hant',
9
+ label: '繁體中文',
10
+ resources: { ...zhHKResources, ...localResources },
11
+ compatibleNames: ['zh-HK', 'zh-TW', 'zh-MO']
12
+ });
@@ -41,9 +41,9 @@ export * from './erp/EntityApi';
41
41
  export * from './erp/MemberApi';
42
42
  export * from './erp/OrgApi';
43
43
  export * from './erp/PublicApi';
44
- export * from './i18n/enUS';
45
- export * from './i18n/zhCN';
46
- export * from './i18n/zhHK';
44
+ export * from './i18n/en';
45
+ export * from './i18n/zhHans';
46
+ export * from './i18n/zhHant';
47
47
  export { ApiAuthorizationScheme, createClient } from '@etsoo/restclient';
48
48
  export type { IApi, IApiPayload } from '@etsoo/restclient';
49
49
  export * from './result/ActionResult';
package/lib/mjs/index.js CHANGED
@@ -50,9 +50,9 @@ export * from './erp/MemberApi';
50
50
  export * from './erp/OrgApi';
51
51
  export * from './erp/PublicApi';
52
52
  // i18n
53
- export * from './i18n/enUS';
54
- export * from './i18n/zhCN';
55
- export * from './i18n/zhHK';
53
+ export * from './i18n/en';
54
+ export * from './i18n/zhHans';
55
+ export * from './i18n/zhHant';
56
56
  // @etsoo/restclient
57
57
  export { ApiAuthorizationScheme, createClient } from '@etsoo/restclient';
58
58
  // result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.3.43",
3
+ "version": "1.3.47",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@etsoo/notificationbase": "^1.1.18",
56
56
  "@etsoo/restclient": "^1.0.79",
57
- "@etsoo/shared": "^1.1.78",
57
+ "@etsoo/shared": "^1.1.81",
58
58
  "@types/crypto-js": "^4.1.1",
59
59
  "crypto-js": "^4.1.1"
60
60
  },
@@ -67,7 +67,7 @@
67
67
  "@types/jest": "^29.2.3",
68
68
  "@typescript-eslint/eslint-plugin": "^5.45.0",
69
69
  "@typescript-eslint/parser": "^5.45.0",
70
- "eslint": "^8.28.0",
70
+ "eslint": "^8.29.0",
71
71
  "eslint-config-airbnb-base": "^15.0.0",
72
72
  "eslint-plugin-import": "^2.26.0",
73
73
  "jest": "^29.3.1",
@@ -783,11 +783,12 @@ export abstract class CoreApp<
783
783
  */
784
784
  checkLanguage(language?: string) {
785
785
  if (language) {
786
- const item = this.settings.cultures.find(
787
- (c) =>
788
- c.name === language || c.compatibleName?.includes(language)
786
+ const [cultrue, match] = DomUtils.getCulture(
787
+ this.settings.cultures,
788
+ language
789
789
  );
790
- if (item) return item.name;
790
+ if (cultrue != null && match != DomUtils.CultureMatch.Default)
791
+ return cultrue.name;
791
792
  }
792
793
 
793
794
  // Default language
@@ -66,6 +66,11 @@ export type OrgViewDto = {
66
66
  */
67
67
  entityStatus: EntityStatus;
68
68
 
69
+ /**
70
+ * Parent organization id
71
+ */
72
+ parentId?: number;
73
+
69
74
  /**
70
75
  * Creation
71
76
  */
File without changes
package/src/i18n/en.ts ADDED
@@ -0,0 +1,14 @@
1
+ import { DataTypes } from '@etsoo/shared';
2
+ import enUSResources from './en.json';
3
+
4
+ /**
5
+ * Get en neutral culture
6
+ * @param localResources Local resources
7
+ * @returns Full culture
8
+ */
9
+ export const en = (localResources: object): DataTypes.CultureDefinition => ({
10
+ name: 'en',
11
+ label: 'English',
12
+ resources: { ...enUSResources, ...localResources },
13
+ compatibleNames: []
14
+ });
File without changes
File without changes
@@ -0,0 +1,14 @@
1
+ import { DataTypes } from '@etsoo/shared';
2
+ import zhCNResources from './zh-Hans.json';
3
+
4
+ /**
5
+ * Get zh-Hans neutral cultrue
6
+ * @param localResources Local resources
7
+ * @returns Full culture
8
+ */
9
+ export const zhHans = (localResources: {}): DataTypes.CultureDefinition => ({
10
+ name: 'zh-Hans',
11
+ label: '简体中文',
12
+ resources: { ...zhCNResources, ...localResources },
13
+ compatibleNames: ['zh-CN', 'zh-SG']
14
+ });
@@ -0,0 +1,16 @@
1
+ import { DataTypes } from '@etsoo/shared';
2
+ import zhHKResources from './zh-Hant.json';
3
+
4
+ /**
5
+ * Get zh-Hant neutral cultrue
6
+ * @param localResources Local resources
7
+ * @returns Full culture
8
+ */
9
+ export const zhHant = (
10
+ localResources: object
11
+ ): DataTypes.CultureDefinition => ({
12
+ name: 'zh-Hant',
13
+ label: '繁體中文',
14
+ resources: { ...zhHKResources, ...localResources },
15
+ compatibleNames: ['zh-HK', 'zh-TW', 'zh-MO']
16
+ });
package/src/index.ts CHANGED
@@ -58,9 +58,9 @@ export * from './erp/OrgApi';
58
58
  export * from './erp/PublicApi';
59
59
 
60
60
  // i18n
61
- export * from './i18n/enUS';
62
- export * from './i18n/zhCN';
63
- export * from './i18n/zhHK';
61
+ export * from './i18n/en';
62
+ export * from './i18n/zhHans';
63
+ export * from './i18n/zhHant';
64
64
 
65
65
  // @etsoo/restclient
66
66
  export { ApiAuthorizationScheme, createClient } from '@etsoo/restclient';
@@ -1,12 +0,0 @@
1
- import enUSResources from './en-US.json';
2
- /**
3
- * Get en-US cultrue
4
- * @param localResources Local resources
5
- * @returns Full culture
6
- */
7
- export const enUS = (localResources) => ({
8
- name: 'en-US',
9
- label: 'English',
10
- resources: { ...enUSResources, ...localResources },
11
- compatibleName: ['en-CA', 'en-AU', 'en-NZ', 'en-GB', 'en-IE']
12
- });
@@ -1,7 +0,0 @@
1
- import { DataTypes } from '@etsoo/shared';
2
- /**
3
- * Get zh-CN cultrue
4
- * @param localResources Local resources
5
- * @returns Full culture
6
- */
7
- export declare const zhCN: (localResources: {}) => DataTypes.CultureDefinition;
@@ -1,12 +0,0 @@
1
- import zhCNResources from './zh-CN.json';
2
- /**
3
- * Get zh-CN cultrue
4
- * @param localResources Local resources
5
- * @returns Full culture
6
- */
7
- export const zhCN = (localResources) => ({
8
- name: 'zh-CN',
9
- label: '简体中文',
10
- resources: { ...zhCNResources, ...localResources },
11
- compatibleName: ['zh-SG']
12
- });
@@ -1,7 +0,0 @@
1
- import { DataTypes } from '@etsoo/shared';
2
- /**
3
- * Get zh-HK cultrue
4
- * @param localResources Local resources
5
- * @returns Full culture
6
- */
7
- export declare const zhHK: (localResources: object) => DataTypes.CultureDefinition;
@@ -1,12 +0,0 @@
1
- import zhHKResources from './zh-HK.json';
2
- /**
3
- * Get zh-HK cultrue
4
- * @param localResources Local resources
5
- * @returns Full culture
6
- */
7
- export const zhHK = (localResources) => ({
8
- name: 'zh-HK',
9
- label: '繁體中文',
10
- resources: { ...zhHKResources, ...localResources },
11
- compatibleName: ['zh-TW', 'zh-MO']
12
- });
package/src/i18n/enUS.ts DELETED
@@ -1,14 +0,0 @@
1
- import { DataTypes } from '@etsoo/shared';
2
- import enUSResources from './en-US.json';
3
-
4
- /**
5
- * Get en-US cultrue
6
- * @param localResources Local resources
7
- * @returns Full culture
8
- */
9
- export const enUS = (localResources: object): DataTypes.CultureDefinition => ({
10
- name: 'en-US',
11
- label: 'English',
12
- resources: { ...enUSResources, ...localResources },
13
- compatibleName: ['en-CA', 'en-AU', 'en-NZ', 'en-GB', 'en-IE']
14
- });
package/src/i18n/zhCN.ts DELETED
@@ -1,14 +0,0 @@
1
- import { DataTypes } from '@etsoo/shared';
2
- import zhCNResources from './zh-CN.json';
3
-
4
- /**
5
- * Get zh-CN cultrue
6
- * @param localResources Local resources
7
- * @returns Full culture
8
- */
9
- export const zhCN = (localResources: {}): DataTypes.CultureDefinition => ({
10
- name: 'zh-CN',
11
- label: '简体中文',
12
- resources: { ...zhCNResources, ...localResources },
13
- compatibleName: ['zh-SG']
14
- });
package/src/i18n/zhHK.ts DELETED
@@ -1,14 +0,0 @@
1
- import { DataTypes } from '@etsoo/shared';
2
- import zhHKResources from './zh-HK.json';
3
-
4
- /**
5
- * Get zh-HK cultrue
6
- * @param localResources Local resources
7
- * @returns Full culture
8
- */
9
- export const zhHK = (localResources: object): DataTypes.CultureDefinition => ({
10
- name: 'zh-HK',
11
- label: '繁體中文',
12
- resources: { ...zhHKResources, ...localResources },
13
- compatibleName: ['zh-TW', 'zh-MO']
14
- });