poon-choi 1.1.0 → 1.1.1

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,5 +1,5 @@
1
1
  {
2
- "date": "2026-11-23T01:41:31.006Z",
2
+ "date": "2026-11-23T03:07:57.660Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -13,28 +13,28 @@ var public_assets_data_default = {
13
13
  "/assets/index-DSscSFgK.css": {
14
14
  "type": "text/css; charset=utf-8",
15
15
  "etag": "\"ed7-CEafKa8iHrftw4j2sXDsEsYy3Pw\"",
16
- "mtime": "2026-11-23T01:41:30.413Z",
16
+ "mtime": "2026-11-23T03:07:57.164Z",
17
17
  "size": 3799,
18
18
  "path": "../public/assets/index-DSscSFgK.css"
19
19
  },
20
20
  "/assets/wechat-cover-studio-BUTDmJhi.js": {
21
21
  "type": "text/javascript; charset=utf-8",
22
22
  "etag": "\"6e-FvWzlJfp7vTS67QYoP5H6jM+Xe4\"",
23
- "mtime": "2026-11-23T01:41:30.412Z",
23
+ "mtime": "2026-11-23T03:07:57.164Z",
24
24
  "size": 110,
25
25
  "path": "../public/assets/wechat-cover-studio-BUTDmJhi.js"
26
26
  },
27
27
  "/assets/styles-KgQFeGiz.css": {
28
28
  "type": "text/css; charset=utf-8",
29
29
  "etag": "\"637d-ECYFr4bruNVc6B6KsAgIIRug5EA\"",
30
- "mtime": "2026-11-23T01:41:30.413Z",
30
+ "mtime": "2026-11-23T03:07:57.164Z",
31
31
  "size": 25469,
32
32
  "path": "../public/assets/styles-KgQFeGiz.css"
33
33
  },
34
34
  "/assets/index-Fn2k__UE.js": {
35
35
  "type": "text/javascript; charset=utf-8",
36
36
  "etag": "\"5eaab-i94zNwRRbr20cVrakmhijFGoV80\"",
37
- "mtime": "2026-11-23T01:41:30.412Z",
37
+ "mtime": "2026-11-23T03:07:57.163Z",
38
38
  "size": 387755,
39
39
  "path": "../public/assets/index-Fn2k__UE.js"
40
40
  }
package/bin/lang.ts ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 检测用户系统语言
3
+ */
4
+ export function detectLanguage(): 'zh' | 'non-zh' {
5
+ // process.env.LANG: zh_CN.UTF-8
6
+ // Intl.DateTimeFormat().resolvedOptions().locale: zh-CN
7
+ const lang =
8
+ process.env.LANG || Intl.DateTimeFormat().resolvedOptions().locale || ''
9
+
10
+ if (/^zh/.test(lang)) {
11
+ return 'zh'
12
+ }
13
+
14
+ return 'non-zh'
15
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ // Visit https://aka.ms/tsconfig to read more about this file
3
+ "compilerOptions": {
4
+ // File Layout
5
+ // "rootDir": "./src",
6
+ // "outDir": "./dist",
7
+
8
+ // Environment Settings
9
+ // See also https://aka.ms/tsconfig/module
10
+ "module": "nodenext",
11
+ "target": "esnext",
12
+ // "types": [],
13
+ // For nodejs:
14
+ "lib": ["esnext"],
15
+ "types": ["node"],
16
+ // and npm install -D @types/node
17
+
18
+ // Other Outputs
19
+ "sourceMap": true,
20
+ "declaration": true,
21
+ "declarationMap": true,
22
+
23
+ // Stricter Typechecking Options
24
+ "noUncheckedIndexedAccess": true,
25
+ "exactOptionalPropertyTypes": true,
26
+
27
+ "allowImportingTsExtensions": true,
28
+ "noEmit": true,
29
+
30
+ // Style Options
31
+ // "noImplicitReturns": true,
32
+ // "noImplicitOverride": true,
33
+ // "noUnusedLocals": true,
34
+ // "noUnusedParameters": true,
35
+ // "noFallthroughCasesInSwitch": true,
36
+ // "noPropertyAccessFromIndexSignature": true,
37
+
38
+ // Recommended Options
39
+ "strict": true,
40
+ "jsx": "react-jsx",
41
+ "verbatimModuleSyntax": true,
42
+ "isolatedModules": true,
43
+ "noUncheckedSideEffectImports": true,
44
+ "moduleDetection": "force",
45
+ "skipLibCheck": true,
46
+ }
47
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poon-choi",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "poon-choi 🍲 is a wechat-cover-studio: a cover mosaic tool to generate wechat (2.35:1) cover image using multiple images.",
5
5
  "description.zh": "poon-choi 🍲 把多张图片拼合成微信封面(2.35:1)——就像一份**盆菜**,一钵容纳多种不同食材",
6
6
  "private": false,
@@ -12,6 +12,7 @@
12
12
  "poon-choi": "./bin/cli.ts"
13
13
  },
14
14
  "files": [
15
+ "bin/",
15
16
  ".output/"
16
17
  ],
17
18
  "scripts": {