@sapphire/plugin-i18next 8.0.0-next.aa45009 → 8.0.0-next.b368392

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.
@@ -10,7 +10,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
10
  var i18next__default = /*#__PURE__*/_interopDefault(i18next);
11
11
 
12
12
  // src/index.ts
13
- var version = "8.0.0-next.aa45009";
13
+ var version = "8.0.0-next.b368392";
14
14
 
15
15
  Object.defineProperty(exports, "i18next", {
16
16
  enumerable: true,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBO,IAAM,OAAkB,GAAA","file":"index.cjs","sourcesContent":["import type { InternationalizationHandler } from './lib/InternationalizationHandler';\nimport type { InternationalizationClientOptions } from './lib/types';\n\nexport { default as i18next, type TFunction, type TOptions } from 'i18next';\nexport * from './lib/InternationalizationHandler';\nexport * from './lib/functions';\nexport * from './lib/types';\n\ndeclare module '@sapphire/pieces' {\n\tinterface Container {\n\t\ti18n: InternationalizationHandler;\n\t}\n}\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions extends InternationalizationClientOptions {}\n}\n\n/**\n * The [@sapphire/plugin-i18next](https://github.com/sapphiredev/plugins/blob/main/packages/i18next) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '8.0.0-next.aa45009';\n"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBO,IAAM,OAAkB,GAAA","file":"index.cjs","sourcesContent":["import type { InternationalizationHandler } from './lib/InternationalizationHandler';\nimport type { InternationalizationClientOptions } from './lib/types';\n\nexport { default as i18next, type TFunction, type TOptions } from 'i18next';\nexport * from './lib/InternationalizationHandler';\nexport * from './lib/functions';\nexport * from './lib/types';\n\ndeclare module '@sapphire/pieces' {\n\tinterface Container {\n\t\ti18n: InternationalizationHandler;\n\t}\n}\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions extends InternationalizationClientOptions {}\n}\n\n/**\n * The [@sapphire/plugin-i18next](https://github.com/sapphiredev/plugins/blob/main/packages/i18next) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '8.0.0-next.b368392';\n"]}
@@ -1,11 +1,11 @@
1
- import * as i18next from 'i18next';
2
- import { InitOptions, ParseKeys, TOptions, Namespace, DefaultNamespace, TFunctionReturn, AppendKeyPrefix, InterpolationMap, TFunctionReturnOptionalDetails } from 'i18next';
3
- export { TFunction, TOptions, default as i18next } from 'i18next';
4
1
  import { Awaitable } from '@sapphire/utilities';
5
2
  import { Backend } from '@skyra/i18next-backend';
3
+ import * as i18next from 'i18next';
4
+ import { InitOptions, TFunction, ParseKeys, TOptions, Namespace, DefaultNamespace, TFunctionReturn, AppendKeyPrefix, InterpolationMap, TFunctionReturnOptionalDetails } from 'i18next';
5
+ export { TFunction, TOptions, default as i18next } from 'i18next';
6
6
  import { PathLike } from 'node:fs';
7
7
  import { ChokidarOptions } from 'chokidar';
8
- import { Message, StageChannel, VoiceChannel, Guild, User, Interaction, LocalizationMap, BaseInteraction, APIApplicationCommandOptionChoice } from 'discord.js';
8
+ import { Guild, Message, StageChannel, VoiceChannel, User, Interaction, LocalizationMap, BaseInteraction, APIApplicationCommandOptionChoice } from 'discord.js';
9
9
 
10
10
  /**
11
11
  * This is a re-exported type from i18next.
@@ -210,7 +210,7 @@ declare class InternationalizationHandler {
210
210
  * A `Map` of `i18next` language functions keyed by their language code.
211
211
  * @since 1.0.0
212
212
  */
213
- readonly languages: Map<string, i18next.TFunctionNonStrict<"translation", undefined>>;
213
+ readonly languages: Map<string, TFunction<"translation", undefined>>;
214
214
  /**
215
215
  * The options InternationalizationHandler was initialized with in the client.
216
216
  * @since 1.0.0
@@ -281,7 +281,7 @@ declare class InternationalizationHandler {
281
281
  * @param locale The language to be used.
282
282
  * @since 1.0.0
283
283
  */
284
- getT(locale: string): i18next.TFunctionNonStrict<"translation", undefined>;
284
+ getT(locale: string): TFunction<"translation", undefined>;
285
285
  /**
286
286
  * Localizes a content given one or more keys and i18next options.
287
287
  * @since 2.0.0
@@ -352,7 +352,7 @@ declare function fetchLanguage(target: Target): Promise<string>;
352
352
  * @param target The target to fetch the language from.
353
353
  * @returns The language function from i18next.
354
354
  */
355
- declare function fetchT(target: Target): Promise<i18next.TFunctionNonStrict<"translation", undefined>>;
355
+ declare function fetchT(target: Target): Promise<i18next.TFunction<"translation", undefined>>;
356
356
  /**
357
357
  * Resolves a key and its parameters.
358
358
  * @since 2.0.0
@@ -1,11 +1,11 @@
1
- import * as i18next from 'i18next';
2
- import { InitOptions, ParseKeys, TOptions, Namespace, DefaultNamespace, TFunctionReturn, AppendKeyPrefix, InterpolationMap, TFunctionReturnOptionalDetails } from 'i18next';
3
- export { TFunction, TOptions, default as i18next } from 'i18next';
4
1
  import { Awaitable } from '@sapphire/utilities';
5
2
  import { Backend } from '@skyra/i18next-backend';
3
+ import * as i18next from 'i18next';
4
+ import { InitOptions, TFunction, ParseKeys, TOptions, Namespace, DefaultNamespace, TFunctionReturn, AppendKeyPrefix, InterpolationMap, TFunctionReturnOptionalDetails } from 'i18next';
5
+ export { TFunction, TOptions, default as i18next } from 'i18next';
6
6
  import { PathLike } from 'node:fs';
7
7
  import { ChokidarOptions } from 'chokidar';
8
- import { Message, StageChannel, VoiceChannel, Guild, User, Interaction, LocalizationMap, BaseInteraction, APIApplicationCommandOptionChoice } from 'discord.js';
8
+ import { Guild, Message, StageChannel, VoiceChannel, User, Interaction, LocalizationMap, BaseInteraction, APIApplicationCommandOptionChoice } from 'discord.js';
9
9
 
10
10
  /**
11
11
  * This is a re-exported type from i18next.
@@ -210,7 +210,7 @@ declare class InternationalizationHandler {
210
210
  * A `Map` of `i18next` language functions keyed by their language code.
211
211
  * @since 1.0.0
212
212
  */
213
- readonly languages: Map<string, i18next.TFunctionNonStrict<"translation", undefined>>;
213
+ readonly languages: Map<string, TFunction<"translation", undefined>>;
214
214
  /**
215
215
  * The options InternationalizationHandler was initialized with in the client.
216
216
  * @since 1.0.0
@@ -281,7 +281,7 @@ declare class InternationalizationHandler {
281
281
  * @param locale The language to be used.
282
282
  * @since 1.0.0
283
283
  */
284
- getT(locale: string): i18next.TFunctionNonStrict<"translation", undefined>;
284
+ getT(locale: string): TFunction<"translation", undefined>;
285
285
  /**
286
286
  * Localizes a content given one or more keys and i18next options.
287
287
  * @since 2.0.0
@@ -352,7 +352,7 @@ declare function fetchLanguage(target: Target): Promise<string>;
352
352
  * @param target The target to fetch the language from.
353
353
  * @returns The language function from i18next.
354
354
  */
355
- declare function fetchT(target: Target): Promise<i18next.TFunctionNonStrict<"translation", undefined>>;
355
+ declare function fetchT(target: Target): Promise<i18next.TFunction<"translation", undefined>>;
356
356
  /**
357
357
  * Resolves a key and its parameters.
358
358
  * @since 2.0.0
@@ -4,7 +4,7 @@ export * from './lib/InternationalizationHandler.mjs';
4
4
  export * from './lib/functions.mjs';
5
5
  export * from './lib/types.mjs';
6
6
 
7
- var version = "8.0.0-next.aa45009";
7
+ var version = "8.0.0-next.b368392";
8
8
 
9
9
  export { version };
10
10
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAyBO,IAAM,OAAkB,GAAA","file":"index.mjs","sourcesContent":["import type { InternationalizationHandler } from './lib/InternationalizationHandler';\nimport type { InternationalizationClientOptions } from './lib/types';\n\nexport { default as i18next, type TFunction, type TOptions } from 'i18next';\nexport * from './lib/InternationalizationHandler';\nexport * from './lib/functions';\nexport * from './lib/types';\n\ndeclare module '@sapphire/pieces' {\n\tinterface Container {\n\t\ti18n: InternationalizationHandler;\n\t}\n}\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions extends InternationalizationClientOptions {}\n}\n\n/**\n * The [@sapphire/plugin-i18next](https://github.com/sapphiredev/plugins/blob/main/packages/i18next) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '8.0.0-next.aa45009';\n"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAyBO,IAAM,OAAkB,GAAA","file":"index.mjs","sourcesContent":["import type { InternationalizationHandler } from './lib/InternationalizationHandler';\nimport type { InternationalizationClientOptions } from './lib/types';\n\nexport { default as i18next, type TFunction, type TOptions } from 'i18next';\nexport * from './lib/InternationalizationHandler';\nexport * from './lib/functions';\nexport * from './lib/types';\n\ndeclare module '@sapphire/pieces' {\n\tinterface Container {\n\t\ti18n: InternationalizationHandler;\n\t}\n}\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions extends InternationalizationClientOptions {}\n}\n\n/**\n * The [@sapphire/plugin-i18next](https://github.com/sapphiredev/plugins/blob/main/packages/i18next) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '8.0.0-next.b368392';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire/plugin-i18next",
3
- "version": "8.0.0-next.aa45009",
3
+ "version": "8.0.0-next.b368392",
4
4
  "description": "Plugin for @sapphire/framework to support i18next.",
5
5
  "author": "@sapphire",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "lint": "eslint src tests --ext ts --fix",
40
40
  "build": "tsup && yarn build:types && yarn build:rename-cjs-register",
41
41
  "build:types": "concurrently \"yarn:build:types:*\"",
42
- "build:types:cjs": "rollup-type-bundler -d dist/cjs -ot .cts",
42
+ "build:types:cjs": "rollup-type-bundler -d dist/cjs --output-typings-file-extension .cts",
43
43
  "build:types:esm": "rollup-type-bundler -d dist/esm -t .mts",
44
44
  "build:types:cleanup": "tsx ../../scripts/clean-register-imports.mts",
45
45
  "build:rename-cjs-register": "tsx ../../scripts/rename-cjs-register.mts",
@@ -50,10 +50,10 @@
50
50
  "check-update": "cliff-jumper --dry-run"
51
51
  },
52
52
  "dependencies": {
53
- "@sapphire/utilities": "^3.18.1",
53
+ "@sapphire/utilities": "^3.18.2",
54
54
  "@skyra/i18next-backend": "^2.0.5",
55
55
  "chokidar": "^4.0.3",
56
- "i18next": "^24.2.0"
56
+ "i18next": "^24.2.2"
57
57
  },
58
58
  "repository": {
59
59
  "type": "git",
@@ -86,10 +86,10 @@
86
86
  "access": "public"
87
87
  },
88
88
  "devDependencies": {
89
- "@favware/cliff-jumper": "^5.0.0",
90
- "@favware/rollup-type-bundler": "^3.3.0",
89
+ "@favware/cliff-jumper": "^6.0.0",
90
+ "@favware/rollup-type-bundler": "^4.0.0",
91
91
  "concurrently": "^9.1.2",
92
- "tsup": "^8.3.5",
92
+ "tsup": "^8.3.6",
93
93
  "tsx": "^4.19.2",
94
94
  "typedoc": "^0.26.11",
95
95
  "typedoc-json-parser": "^10.2.0",