@gunshi/plugin-i18n 0.26.3 → 0.27.0-alpha.5

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/README.md CHANGED
@@ -86,7 +86,7 @@ await cli(process.argv.slice(2), greetCommand, {
86
86
  - Default: `{}`
87
87
  - Description:
88
88
  - Built-in resource translations for different locales. Used for translating gunshi built-in level messages like "USAGE", "OPTIONS", "COMMANDS", etc.
89
- - for details, see [Resource Key Naming Conventions](#resource-key-naming-conventions)
89
+ - for details, see [Resource Key Naming Conventions](#-resource-key-naming-conventions)
90
90
 
91
91
  ### `translationAdapterFactory`
92
92
 
package/lib/index.d.ts CHANGED
@@ -67,9 +67,7 @@ interface ArgSchema {
67
67
  */
68
68
  interface Args {
69
69
  [option: string]: ArgSchema;
70
- } //#endregion
71
- //#region ../shared/src/constants.d.ts
72
-
70
+ }
73
71
  /**
74
72
  * An object that contains the values of the arguments.
75
73
  */
@@ -101,7 +99,6 @@ type CommonArgType = {
101
99
  };
102
100
  declare const COMMON_ARGS: CommonArgType;
103
101
  declare const COMMAND_BUILTIN_RESOURCE_KEYS: readonly ["USAGE", "COMMAND", "SUBCOMMAND", "COMMANDS", "ARGUMENTS", "OPTIONS", "EXAMPLES", "FORMORE", "NEGATABLE", "DEFAULT", "CHOICES"];
104
-
105
102
  //#endregion
106
103
  //#region ../shared/src/types.d.ts
107
104
  type RemoveIndexSignature<T> = { [K in keyof T as string extends K ? never : number extends K ? never : K]: T[K] };
@@ -136,7 +133,6 @@ type CommandBuiltinKeys = GenerateNamespacedKey<BuiltinResourceKeys> | 'descript
136
133
  * The command i18n option keys are used by the i18n plugin for translation.
137
134
  */
138
135
  type CommandArgKeys<A extends Args> = GenerateNamespacedKey<KeyOfArgs<RemovedIndex<A>>, typeof ARG_PREFIX>;
139
-
140
136
  //#endregion
141
137
  //#region src/types.d.ts
142
138
  /**
@@ -272,7 +268,6 @@ interface I18nCommand<G extends GunshiParamsConstraint = DefaultGunshiParams> ex
272
268
  */
273
269
  resource?: CommandResourceFetcher<G>;
274
270
  }
275
-
276
271
  //#endregion
277
272
  //#region src/helpers.d.ts
278
273
  /**
@@ -328,7 +323,6 @@ declare function defineI18n<G extends GunshiParamsConstraint = DefaultGunshiPara
328
323
  * ```
329
324
  */
330
325
  declare function withI18nResource<G extends GunshiParamsConstraint>(command: Command<G>, resource: CommandResourceFetcher<G>): I18nCommand<G>;
331
-
332
326
  //#endregion
333
327
  //#region src/translation.d.ts
334
328
  declare function createTranslationAdapter(options: TranslationAdapterFactoryOptions): TranslationAdapter;
@@ -340,7 +334,6 @@ declare class DefaultTranslation implements TranslationAdapter {
340
334
  getMessage(locale: string, key: string): string | undefined;
341
335
  translate(locale: string, key: string, values?: Record<string, unknown>): string | undefined;
342
336
  }
343
-
344
337
  //#endregion
345
338
  //#region src/index.d.ts
346
339
  /**
@@ -351,6 +344,5 @@ declare const DEFAULT_LOCALE = "en-US";
351
344
  * i18n plugin
352
345
  */
353
346
  declare function i18n(options?: I18nPluginOptions): PluginWithExtension<Promise<I18nCommandContext<DefaultGunshiParams>>>;
354
-
355
347
  //#endregion
356
348
  export { CommandExamplesFetcher, CommandResource, CommandResourceFetcher, DEFAULT_LOCALE, DefaultTranslation, I18nCommand, I18nCommandContext, I18nPluginOptions, PluginId, TranslationAdapter, TranslationAdapterFactory, TranslationAdapterFactoryOptions, createTranslationAdapter, i18n as default, defineI18n, pluginId, withI18nResource };
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.26.3",
4
+ "version": "0.27.0-alpha.5",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -53,10 +53,10 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@gunshi/plugin": "0.26.3"
56
+ "@gunshi/plugin": "0.27.0-alpha.5"
57
57
  },
58
58
  "peerDependencies": {
59
- "@gunshi/plugin-global": "0.26.3"
59
+ "@gunshi/plugin-global": "0.27.0-alpha.5"
60
60
  },
61
61
  "peerDependenciesMeta": {
62
62
  "@gunshi/plugin-global": {
@@ -65,16 +65,16 @@
65
65
  },
66
66
  "devDependencies": {
67
67
  "@intlify/core": "next",
68
- "deno": "^2.3.3",
69
- "jsr": "^0.13.4",
68
+ "deno": "^2.4.0",
69
+ "jsr": "^0.13.5",
70
70
  "jsr-exports-lint": "^0.4.1",
71
71
  "messageformat": "4.0.0-12",
72
72
  "publint": "^0.3.12",
73
- "tsdown": "^0.12.3",
74
- "typedoc": "^0.28.4",
75
- "typedoc-plugin-markdown": "^4.6.3",
76
- "@gunshi/shared": "0.26.3",
77
- "@gunshi/resources": "0.26.3"
73
+ "tsdown": "^0.12.9",
74
+ "typedoc": "^0.28.7",
75
+ "typedoc-plugin-markdown": "^4.7.0",
76
+ "@gunshi/shared": "0.27.0-alpha.5",
77
+ "@gunshi/resources": "0.27.0-alpha.5"
78
78
  },
79
79
  "scripts": {
80
80
  "build": "tsdown",