@sapphire/plugin-i18next 8.0.1-next.e803556 → 8.0.1-next.edf5e96
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/dist/cjs/index.cjs
CHANGED
|
@@ -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.1-next.
|
|
13
|
+
var version = "8.0.1-next.edf5e96";
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "i18next", {
|
|
16
16
|
enumerable: true,
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBO,IAAM,OAAA,GAAkB","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.1-next.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBO,IAAM,OAAA,GAAkB","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.1-next.edf5e96';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/register.ts"],"names":["Plugin","preGenericsInitialization","container","InternationalizationHandler","preLogin","postLogin","watch","SapphireClient"],"mappings":";;;;;;;;AAOO,IAAM,cAAA,GAAN,MAAM,cAAA,SAAsBA,gBAAA,CAAO;AAAA,EACzC,
|
|
1
|
+
{"version":3,"sources":["../../src/register.ts"],"names":["Plugin","preGenericsInitialization","container","InternationalizationHandler","preLogin","postLogin","watch","SapphireClient"],"mappings":";;;;;;;;AAOO,IAAM,cAAA,GAAN,MAAM,cAAA,SAAsBA,gBAAA,CAAO;AAAA,EACzC,QAAwBC,mCAAyB,CAAA,CAAwB,OAAA,EAA8B;AACtG,IAAAC,mBAAA,CAAU,IAAA,GAAO,IAAIC,qCAAA,CAA4B,OAAA,CAAQ,IAAI,CAAA;AAAA,EAC9D;AAAA,EAEA,cAA8BC,kBAAQ,CAAA,GAAuC;AAC5E,IAAA,MAAMF,mBAAA,CAAU,KAAK,IAAA,EAAK;AAAA,EAC3B;AAAA,EAEA,QAAwBG,mBAAS,CAAA,GAA8B;AAC9D,IAAA,IAAI,IAAA,CAAK,OAAA,CAAQ,IAAA,EAAM,GAAA,EAAK,OAAA,EAAS;AACpC,MAAAH,mBAAA,CAAU,MAAA,CAAO,KAAK,gEAAgE,CAAA;AAEtF,MAAAI,cAAA,CAAMJ,mBAAA,CAAU,IAAA,CAAK,kBAAA,EAAoB,IAAA,CAAK,OAAA,CAAQ,KAAK,GAAA,CAAI,OAAA,IAAW,EAAE,CAAA,CAC1E,EAAA,CAAG,UAAU,MAAMA,mBAAA,CAAU,IAAA,CAAK,eAAA,EAAiB,CAAA,CACnD,EAAA,CAAG,QAAA,EAAU,MAAMA,mBAAA,CAAU,IAAA,CAAK,eAAA,EAAiB,CAAA;AAAA,IACtD;AAAA,EACD;AACD,CAAA;AAlB0C,MAAA,CAAA,cAAA,EAAA,eAAA,CAAA;AAAnC,IAAM,aAAA,GAAN;AAoBPK,wBAAA,CAAe,OAAA,CAAQ,8BAAA,CAA+B,aAAA,CAAcN,mCAAyB,GAAG,mCAAmC,CAAA;AACnIM,wBAAA,CAAe,OAAA,CAAQ,oBAAA,CAAqB,aAAA,CAAcH,kBAAQ,GAAG,kBAAkB,CAAA;AACvFG,wBAAA,CAAe,OAAA,CAAQ,qBAAA,CAAsB,aAAA,CAAcF,mBAAS,GAAG,mBAAmB,CAAA","file":"register.cjs","sourcesContent":["import './index';\n\nimport { Plugin, SapphireClient, container, postLogin, preGenericsInitialization, preLogin } from '@sapphire/framework';\nimport { watch } from 'chokidar';\nimport type { ClientOptions } from 'discord.js';\nimport { InternationalizationHandler } from './index';\n\nexport class I18nextPlugin extends Plugin {\n\tpublic static override [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\tcontainer.i18n = new InternationalizationHandler(options.i18n);\n\t}\n\n\tpublic static override async [preLogin](this: SapphireClient): Promise<void> {\n\t\tawait container.i18n.init();\n\t}\n\n\tpublic static override [postLogin](this: SapphireClient): void {\n\t\tif (this.options.i18n?.hmr?.enabled) {\n\t\t\tcontainer.logger.info('[i18next-Plugin]: HMR enabled. Watching for languages changes.');\n\n\t\t\twatch(container.i18n.languagesDirectory, this.options.i18n.hmr.options ?? {})\n\t\t\t\t.on('change', () => container.i18n.reloadResources())\n\t\t\t\t.on('unlink', () => container.i18n.reloadResources());\n\t\t}\n\t}\n}\n\nSapphireClient.plugins.registerPostInitializationHook(I18nextPlugin[preGenericsInitialization], 'I18next-PreGenericsInitialization');\nSapphireClient.plugins.registerPreLoginHook(I18nextPlugin[preLogin], 'I18next-PreLogin');\nSapphireClient.plugins.registerPostLoginHook(I18nextPlugin[postLogin], 'I18next-PostLogin');\n"]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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.1-next.
|
|
7
|
+
var version = "8.0.1-next.edf5e96";
|
|
8
8
|
|
|
9
9
|
export { version };
|
|
10
10
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAyBO,IAAM,OAAA,GAAkB","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.1-next.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAyBO,IAAM,OAAA,GAAkB","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.1-next.edf5e96';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;;AAOO,IAAM,cAAA,GAAN,MAAM,cAAA,SAAsB,MAAA,CAAO;AAAA,EACzC,
|
|
1
|
+
{"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;;AAOO,IAAM,cAAA,GAAN,MAAM,cAAA,SAAsB,MAAA,CAAO;AAAA,EACzC,QAAwB,yBAAyB,CAAA,CAAwB,OAAA,EAA8B;AACtG,IAAA,SAAA,CAAU,IAAA,GAAO,IAAI,2BAAA,CAA4B,OAAA,CAAQ,IAAI,CAAA;AAAA,EAC9D;AAAA,EAEA,cAA8B,QAAQ,CAAA,GAAuC;AAC5E,IAAA,MAAM,SAAA,CAAU,KAAK,IAAA,EAAK;AAAA,EAC3B;AAAA,EAEA,QAAwB,SAAS,CAAA,GAA8B;AAC9D,IAAA,IAAI,IAAA,CAAK,OAAA,CAAQ,IAAA,EAAM,GAAA,EAAK,OAAA,EAAS;AACpC,MAAA,SAAA,CAAU,MAAA,CAAO,KAAK,gEAAgE,CAAA;AAEtF,MAAA,KAAA,CAAM,SAAA,CAAU,IAAA,CAAK,kBAAA,EAAoB,IAAA,CAAK,OAAA,CAAQ,KAAK,GAAA,CAAI,OAAA,IAAW,EAAE,CAAA,CAC1E,EAAA,CAAG,UAAU,MAAM,SAAA,CAAU,IAAA,CAAK,eAAA,EAAiB,CAAA,CACnD,EAAA,CAAG,QAAA,EAAU,MAAM,SAAA,CAAU,IAAA,CAAK,eAAA,EAAiB,CAAA;AAAA,IACtD;AAAA,EACD;AACD,CAAA;AAlB0C,MAAA,CAAA,cAAA,EAAA,eAAA,CAAA;AAAnC,IAAM,aAAA,GAAN;AAoBP,cAAA,CAAe,OAAA,CAAQ,8BAAA,CAA+B,aAAA,CAAc,yBAAyB,GAAG,mCAAmC,CAAA;AACnI,cAAA,CAAe,OAAA,CAAQ,oBAAA,CAAqB,aAAA,CAAc,QAAQ,GAAG,kBAAkB,CAAA;AACvF,cAAA,CAAe,OAAA,CAAQ,qBAAA,CAAsB,aAAA,CAAc,SAAS,GAAG,mBAAmB,CAAA","file":"register.mjs","sourcesContent":["import './index';\n\nimport { Plugin, SapphireClient, container, postLogin, preGenericsInitialization, preLogin } from '@sapphire/framework';\nimport { watch } from 'chokidar';\nimport type { ClientOptions } from 'discord.js';\nimport { InternationalizationHandler } from './index';\n\nexport class I18nextPlugin extends Plugin {\n\tpublic static override [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\tcontainer.i18n = new InternationalizationHandler(options.i18n);\n\t}\n\n\tpublic static override async [preLogin](this: SapphireClient): Promise<void> {\n\t\tawait container.i18n.init();\n\t}\n\n\tpublic static override [postLogin](this: SapphireClient): void {\n\t\tif (this.options.i18n?.hmr?.enabled) {\n\t\t\tcontainer.logger.info('[i18next-Plugin]: HMR enabled. Watching for languages changes.');\n\n\t\t\twatch(container.i18n.languagesDirectory, this.options.i18n.hmr.options ?? {})\n\t\t\t\t.on('change', () => container.i18n.reloadResources())\n\t\t\t\t.on('unlink', () => container.i18n.reloadResources());\n\t\t}\n\t}\n}\n\nSapphireClient.plugins.registerPostInitializationHook(I18nextPlugin[preGenericsInitialization], 'I18next-PreGenericsInitialization');\nSapphireClient.plugins.registerPreLoginHook(I18nextPlugin[preLogin], 'I18next-PreLogin');\nSapphireClient.plugins.registerPostLoginHook(I18nextPlugin[postLogin], 'I18next-PostLogin');\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/plugin-i18next",
|
|
3
|
-
"version": "8.0.1-next.
|
|
3
|
+
"version": "8.0.1-next.edf5e96",
|
|
4
4
|
"description": "Plugin for @sapphire/framework to support i18next.",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@sapphire/utilities": "^3.18.2",
|
|
54
54
|
"@skyra/i18next-backend": "^2.0.6",
|
|
55
55
|
"chokidar": "^4.0.3",
|
|
56
|
-
"i18next": "^25.
|
|
56
|
+
"i18next": "^25.7.3"
|
|
57
57
|
},
|
|
58
58
|
"repository": {
|
|
59
59
|
"type": "git",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"@favware/rollup-type-bundler": "^4.0.0",
|
|
91
91
|
"concurrently": "^9.2.1",
|
|
92
92
|
"tsup": "^8.5.1",
|
|
93
|
-
"tsx": "^4.
|
|
94
|
-
"typedoc": "^0.
|
|
93
|
+
"tsx": "^4.21.0",
|
|
94
|
+
"typedoc": "^0.28.14",
|
|
95
95
|
"typedoc-json-parser": "^10.2.0",
|
|
96
|
-
"typescript": "~5.
|
|
96
|
+
"typescript": "~5.9.3"
|
|
97
97
|
}
|
|
98
98
|
}
|