@commandkit/i18n 0.1.2-dev.20250530140704 → 0.1.2-dev.20250530151225
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/index.d.ts +2 -1
- package/dist/index.js +6 -16
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { I18nPlugin, LocalizationPluginOptions } from './i18n';
|
|
2
2
|
export declare function i18n(options?: LocalizationPluginOptions): I18nPlugin;
|
|
3
|
-
export
|
|
3
|
+
export { locale } from './hooks';
|
|
4
|
+
export { getI18n, type CommandLocalizationContext } from './i18n';
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getI18n = exports.locale = void 0;
|
|
17
4
|
exports.i18n = i18n;
|
|
18
5
|
const i18n_1 = require("./i18n");
|
|
19
6
|
function i18n(options) {
|
|
@@ -31,5 +18,8 @@ function i18n(options) {
|
|
|
31
18
|
const localization = new i18n_1.I18nPlugin(opt);
|
|
32
19
|
return localization;
|
|
33
20
|
}
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
var hooks_1 = require("./hooks");
|
|
22
|
+
Object.defineProperty(exports, "locale", { enumerable: true, get: function () { return hooks_1.locale; } });
|
|
23
|
+
var i18n_2 = require("./i18n");
|
|
24
|
+
Object.defineProperty(exports, "getI18n", { enumerable: true, get: function () { return i18n_2.getI18n; } });
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsb0JBZ0JDO0FBbEJELGlDQUErRDtBQUUvRCxTQUFnQixJQUFJLENBQUMsT0FBbUM7SUFDdEQsTUFBTSxHQUFHLEdBQUc7UUFDVixHQUFHLE9BQU87UUFDVixXQUFXLEVBQUU7WUFDWCxTQUFTLEVBQUUsU0FBUztZQUNwQixXQUFXLEVBQUUsT0FBTztZQUNwQixJQUFJLEVBQUUsYUFBYTtZQUNuQixXQUFXLEVBQUUsS0FBSztZQUNsQix1QkFBdUIsRUFBRSxJQUFJO1lBQzdCLEdBQUcsT0FBTyxFQUFFLFdBQVc7U0FDeEI7S0FDMkIsQ0FBQztJQUUvQixNQUFNLFlBQVksR0FBRyxJQUFJLGlCQUFVLENBQUMsR0FBRyxDQUFDLENBQUM7SUFFekMsT0FBTyxZQUFZLENBQUM7QUFDdEIsQ0FBQztBQUVELGlDQUFpQztBQUF4QiwrRkFBQSxNQUFNLE9BQUE7QUFDZiwrQkFBa0U7QUFBekQsK0ZBQUEsT0FBTyxPQUFBIn0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commandkit/i18n",
|
|
3
|
-
"version": "0.1.2-dev.
|
|
3
|
+
"version": "0.1.2-dev.20250530151225",
|
|
4
4
|
"description": "CommandKit plugin that adds command localizations backed by i18next",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"discord.js": "^14.19.1",
|
|
31
31
|
"typescript": "^5.7.3",
|
|
32
|
-
"commandkit": "1.0.0-dev.
|
|
33
|
-
"tsconfig": "0.0.0-dev.
|
|
32
|
+
"commandkit": "1.0.0-dev.20250530151225",
|
|
33
|
+
"tsconfig": "0.0.0-dev.20250530151225"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"lint": "tsc --noEmit",
|