@etsoo/appscript 1.3.48 → 1.3.50
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/lib/mjs/i18n/en.js +2 -2
- package/lib/mjs/i18n/zhHans.js +2 -2
- package/lib/mjs/i18n/zhHant.js +2 -2
- package/package.json +11 -11
- package/src/i18n/en.ts +2 -2
- package/src/i18n/zhHans.ts +2 -2
- package/src/i18n/zhHant.ts +2 -2
package/lib/mjs/i18n/en.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import enResources from './en.json';
|
|
2
2
|
/**
|
|
3
3
|
* Get en neutral culture
|
|
4
4
|
* @param localResources Local resources
|
|
@@ -7,6 +7,6 @@ import enUSResources from './en.json';
|
|
|
7
7
|
export const en = (localResources) => ({
|
|
8
8
|
name: 'en',
|
|
9
9
|
label: 'English',
|
|
10
|
-
resources: { ...
|
|
10
|
+
resources: { ...enResources, ...localResources },
|
|
11
11
|
compatibleNames: []
|
|
12
12
|
});
|
package/lib/mjs/i18n/zhHans.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import zhHansResources from './zh-Hans.json';
|
|
2
2
|
/**
|
|
3
3
|
* Get zh-Hans neutral cultrue
|
|
4
4
|
* @param localResources Local resources
|
|
@@ -7,6 +7,6 @@ import zhCNResources from './zh-Hans.json';
|
|
|
7
7
|
export const zhHans = (localResources) => ({
|
|
8
8
|
name: 'zh-Hans',
|
|
9
9
|
label: '简体中文',
|
|
10
|
-
resources: { ...
|
|
10
|
+
resources: { ...zhHansResources, ...localResources },
|
|
11
11
|
compatibleNames: ['zh-CN', 'zh-SG']
|
|
12
12
|
});
|
package/lib/mjs/i18n/zhHant.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import zhHantResources from './zh-Hant.json';
|
|
2
2
|
/**
|
|
3
3
|
* Get zh-Hant neutral cultrue
|
|
4
4
|
* @param localResources Local resources
|
|
@@ -7,6 +7,6 @@ import zhHKResources from './zh-Hant.json';
|
|
|
7
7
|
export const zhHant = (localResources) => ({
|
|
8
8
|
name: 'zh-Hant',
|
|
9
9
|
label: '繁體中文',
|
|
10
|
-
resources: { ...
|
|
10
|
+
resources: { ...zhHantResources, ...localResources },
|
|
11
11
|
compatibleNames: ['zh-HK', 'zh-TW', 'zh-MO']
|
|
12
12
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/appscript",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.50",
|
|
4
4
|
"description": "Applications shared TypeScript framework",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -52,27 +52,27 @@
|
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://github.com/ETSOO/AppScript#readme",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@etsoo/notificationbase": "^1.1.
|
|
56
|
-
"@etsoo/restclient": "^1.0.
|
|
57
|
-
"@etsoo/shared": "^1.1.
|
|
55
|
+
"@etsoo/notificationbase": "^1.1.20",
|
|
56
|
+
"@etsoo/restclient": "^1.0.80",
|
|
57
|
+
"@etsoo/shared": "^1.1.84",
|
|
58
58
|
"@types/crypto-js": "^4.1.1",
|
|
59
59
|
"crypto-js": "^4.1.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@babel/cli": "^7.
|
|
63
|
-
"@babel/core": "^7.20.
|
|
62
|
+
"@babel/cli": "^7.20.7",
|
|
63
|
+
"@babel/core": "^7.20.7",
|
|
64
64
|
"@babel/plugin-transform-runtime": "^7.19.6",
|
|
65
65
|
"@babel/preset-env": "^7.20.2",
|
|
66
|
-
"@babel/runtime-corejs3": "^7.20.
|
|
66
|
+
"@babel/runtime-corejs3": "^7.20.7",
|
|
67
67
|
"@types/jest": "^29.2.4",
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
69
|
-
"@typescript-eslint/parser": "^5.
|
|
70
|
-
"eslint": "^8.
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^5.47.0",
|
|
69
|
+
"@typescript-eslint/parser": "^5.47.0",
|
|
70
|
+
"eslint": "^8.30.0",
|
|
71
71
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
72
72
|
"eslint-plugin-import": "^2.26.0",
|
|
73
73
|
"jest": "^29.3.1",
|
|
74
74
|
"jest-environment-jsdom": "^29.3.1",
|
|
75
75
|
"ts-jest": "^29.0.3",
|
|
76
|
-
"typescript": "^4.9.
|
|
76
|
+
"typescript": "^4.9.4"
|
|
77
77
|
}
|
|
78
78
|
}
|
package/src/i18n/en.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataTypes } from '@etsoo/shared';
|
|
2
|
-
import
|
|
2
|
+
import enResources from './en.json';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Get en neutral culture
|
|
@@ -9,6 +9,6 @@ import enUSResources from './en.json';
|
|
|
9
9
|
export const en = (localResources: object): DataTypes.CultureDefinition => ({
|
|
10
10
|
name: 'en',
|
|
11
11
|
label: 'English',
|
|
12
|
-
resources: { ...
|
|
12
|
+
resources: { ...enResources, ...localResources },
|
|
13
13
|
compatibleNames: []
|
|
14
14
|
});
|
package/src/i18n/zhHans.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataTypes } from '@etsoo/shared';
|
|
2
|
-
import
|
|
2
|
+
import zhHansResources from './zh-Hans.json';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Get zh-Hans neutral cultrue
|
|
@@ -9,6 +9,6 @@ import zhCNResources from './zh-Hans.json';
|
|
|
9
9
|
export const zhHans = (localResources: {}): DataTypes.CultureDefinition => ({
|
|
10
10
|
name: 'zh-Hans',
|
|
11
11
|
label: '简体中文',
|
|
12
|
-
resources: { ...
|
|
12
|
+
resources: { ...zhHansResources, ...localResources },
|
|
13
13
|
compatibleNames: ['zh-CN', 'zh-SG']
|
|
14
14
|
});
|
package/src/i18n/zhHant.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataTypes } from '@etsoo/shared';
|
|
2
|
-
import
|
|
2
|
+
import zhHantResources from './zh-Hant.json';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Get zh-Hant neutral cultrue
|
|
@@ -11,6 +11,6 @@ export const zhHant = (
|
|
|
11
11
|
): DataTypes.CultureDefinition => ({
|
|
12
12
|
name: 'zh-Hant',
|
|
13
13
|
label: '繁體中文',
|
|
14
|
-
resources: { ...
|
|
14
|
+
resources: { ...zhHantResources, ...localResources },
|
|
15
15
|
compatibleNames: ['zh-HK', 'zh-TW', 'zh-MO']
|
|
16
16
|
});
|