@gunshi/plugin-i18n 0.29.4 → 0.30.0

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/index.d.ts CHANGED
@@ -508,6 +508,9 @@ type CommonArgType = {
508
508
  };
509
509
  declare const COMMON_ARGS: CommonArgType;
510
510
  declare const COMMAND_BUILTIN_RESOURCE_KEYS: readonly ["USAGE", "COMMAND", "SUBCOMMAND", "COMMANDS", "ARGUMENTS", "OPTIONS", "EXAMPLES", "FORMORE", "NEGATABLE", "DEFAULT", "CHOICES"];
511
+ //#endregion
512
+ //#region ../gunshi/src/index.d.ts
513
+
511
514
  //#endregion
512
515
  //#region ../shared/src/types.d.ts
513
516
  type RemoveIndexSignature<T> = { [K in keyof T as string extends K ? never : number extends K ? never : K]: T[K] };
@@ -560,6 +563,9 @@ E extends Record<string, string> = {},
560
563
  R extends string = keyof RemovedIndex<E>, T extends string = (C extends {
561
564
  name: infer N;
562
565
  } ? N extends string ? GenerateNamespacedKey<R, N> : R : R | CommandBuiltinKeys), O = CommandArgKeys<A, C>> = CommandBuiltinKeys | O | T;
566
+ //#endregion
567
+ //#region ../shared/src/localization.d.ts
568
+
563
569
  //#endregion
564
570
  //#region ../shared/src/utils.d.ts
565
571
  /**
@@ -598,6 +604,9 @@ declare function resolveArgKey<A extends Args$1 = DefaultGunshiParams$1['args'],
598
604
  * @returns Prefixed non-built-in key.
599
605
  */
600
606
  declare function resolveKey<T extends Record<string, string> = {}, K extends string = (keyof T extends string ? keyof T : string)>(key: K, name?: string): string;
607
+ //#endregion
608
+ //#region ../shared/src/index.d.ts
609
+
601
610
  //#endregion
602
611
  //#region src/types.d.ts
603
612
  /**
package/lib/index.js CHANGED
@@ -1,4 +1,8 @@
1
1
  import { plugin } from "@gunshi/plugin";
2
+ /**
3
+ * @author kazuya kawaguchi (a.k.a. kazupon)
4
+ * @license MIT
5
+ */
2
6
  const ARG_PREFIX_AND_KEY_SEPARATOR = `arg:`;
3
7
  const COMMON_ARGS = {
4
8
  help: {
@@ -32,6 +36,10 @@ var en_US_default = {
32
36
  //#endregion
33
37
  //#region ../shared/src/utils.ts
34
38
  /**
39
+ * @author kazuya kawaguchi (a.k.a. kazupon)
40
+ * @license MIT
41
+ */
42
+ /**
35
43
  * Resolve a namespaced key for built-in resources.
36
44
  *
37
45
  * Built-in keys are prefixed with "_:".
@@ -97,8 +105,24 @@ function namespacedId(id) {
97
105
  return `g:${id}`;
98
106
  }
99
107
  //#endregion
108
+ //#region ../shared/src/localization.ts
109
+ /**
110
+ * @author kazuya kawaguchi (a.k.a. kazupon)
111
+ * @license MIT
112
+ */
113
+ //#endregion
114
+ //#region ../shared/src/index.ts
115
+ /**
116
+ * @author kazuya kawaguchi (a.k.a. kazupon)
117
+ * @license MIT
118
+ */
119
+ //#endregion
100
120
  //#region src/translation.ts
101
121
  /**
122
+ * @author kazuya kawaguchi (a.k.a. kazupon)
123
+ * @license MIT
124
+ */
125
+ /**
102
126
  * Create a translation adapter.
103
127
  *
104
128
  * @param options - Options for the translation adapter, see {@linkcode TranslationAdapterFactoryOptions}
@@ -172,12 +196,20 @@ var DefaultTranslation = class {
172
196
  //#endregion
173
197
  //#region src/types.ts
174
198
  /**
199
+ * @author kazuya kawaguchi (a.k.a. kazupon)
200
+ * @license MIT
201
+ */
202
+ /**
175
203
  * The unique identifier for the i18n plugin.
176
204
  */
177
205
  const pluginId = namespacedId("i18n");
178
206
  //#endregion
179
207
  //#region src/helpers.ts
180
208
  /**
209
+ * @author kazuya kawaguchi (a.k.a. kazupon)
210
+ * @license MIT
211
+ */
212
+ /**
181
213
  * Define an i18n-aware {@link I18nCommand | command}.
182
214
  *
183
215
  * @param definition - A {@link I18nCommand | command} definition with i18n support
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gunshi/plugin-i18n",
3
3
  "description": "internationalization plugin for gunshi",
4
- "version": "0.29.4",
4
+ "version": "0.30.0",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -27,7 +27,7 @@
27
27
  "access": "public"
28
28
  },
29
29
  "engines": {
30
- "node": ">= 20"
30
+ "node": ">= 22"
31
31
  },
32
32
  "type": "module",
33
33
  "files": [
@@ -53,10 +53,10 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@gunshi/plugin": "0.29.4"
56
+ "@gunshi/plugin": "0.30.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@gunshi/plugin-global": "0.29.4"
59
+ "@gunshi/plugin-global": "0.30.0"
60
60
  },
61
61
  "peerDependenciesMeta": {
62
62
  "@gunshi/plugin-global": {
@@ -65,20 +65,20 @@
65
65
  },
66
66
  "devDependencies": {
67
67
  "@intlify/core": "next",
68
- "deno": "^2.7.11",
68
+ "deno": "^2.7.14",
69
69
  "jsr": "^0.14.3",
70
70
  "jsr-exports-lint": "^0.4.2",
71
71
  "messageformat": "4.0.0",
72
- "publint": "^0.3.18",
73
- "tsdown": "0.15.12",
74
- "typedoc": "^0.28.18",
72
+ "publint": "^0.3.20",
73
+ "tsdown": "0.21.0",
74
+ "typedoc": "^0.28.19",
75
75
  "typedoc-plugin-markdown": "^4.11.0",
76
- "@gunshi/plugin-global": "0.29.4",
77
- "@gunshi/bone": "0.29.4",
78
- "@gunshi/plugin-renderer": "0.29.4",
79
- "@gunshi/resources": "0.29.4",
80
- "@gunshi/shared": "0.29.4",
81
- "gunshi": "0.29.4"
76
+ "@gunshi/bone": "0.30.0",
77
+ "@gunshi/plugin-global": "0.30.0",
78
+ "@gunshi/resources": "0.30.0",
79
+ "@gunshi/shared": "0.30.0",
80
+ "@gunshi/plugin-renderer": "0.30.0",
81
+ "gunshi": "0.30.0"
82
82
  },
83
83
  "scripts": {
84
84
  "build": "tsdown",