@sapphire/plugin-i18next 2.1.0-next.a8f221d.0 → 2.1.1
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 +8 -8
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -65,11 +65,11 @@ The `resolveKey` function can be used anywhere to get translated text by its key
|
|
|
65
65
|
|
|
66
66
|
```typescript
|
|
67
67
|
import { resolveKey } from '@sapphire/plugin-i18next';
|
|
68
|
-
import { Command
|
|
68
|
+
import { Command } from '@sapphire/framework';
|
|
69
69
|
import type { Message } from 'discord.js';
|
|
70
70
|
|
|
71
71
|
export class PingCommand extends Command {
|
|
72
|
-
public constructor(context:
|
|
72
|
+
public constructor(context: Command.Context, options: Command.Options) {
|
|
73
73
|
super(context, {
|
|
74
74
|
...options,
|
|
75
75
|
description: 'ping pong'
|
|
@@ -86,12 +86,12 @@ export class PingCommand extends Command {
|
|
|
86
86
|
|
|
87
87
|
```typescript
|
|
88
88
|
import { sendLocalized } from '@sapphire/plugin-i18next';
|
|
89
|
-
import { Command
|
|
89
|
+
import { Command } from '@sapphire/framework';
|
|
90
90
|
|
|
91
91
|
import type { Message } from 'discord.js';
|
|
92
92
|
|
|
93
93
|
export class PingCommand extends Command {
|
|
94
|
-
public constructor(context:
|
|
94
|
+
public constructor(context: Command.Context, options: Command.Options) {
|
|
95
95
|
super(context, {
|
|
96
96
|
...options,
|
|
97
97
|
description: 'ping pong'
|
|
@@ -108,12 +108,12 @@ export class PingCommand extends Command {
|
|
|
108
108
|
|
|
109
109
|
```typescript
|
|
110
110
|
import { editLocalized } from '@sapphire/plugin-i18next';
|
|
111
|
-
import { Command
|
|
111
|
+
import { Command } from '@sapphire/framework';
|
|
112
112
|
|
|
113
113
|
import type { Message } from 'discord.js';
|
|
114
114
|
|
|
115
115
|
export class PingCommand extends Command {
|
|
116
|
-
public constructor(context:
|
|
116
|
+
public constructor(context: Command.Context, options: Command.Options) {
|
|
117
117
|
super(context, {
|
|
118
118
|
...options,
|
|
119
119
|
description: 'ping pong'
|
|
@@ -130,12 +130,12 @@ export class PingCommand extends Command {
|
|
|
130
130
|
|
|
131
131
|
```typescript
|
|
132
132
|
import { fetchLanguage } from '@sapphire/plugin-i18next';
|
|
133
|
-
import { Command
|
|
133
|
+
import { Command } from '@sapphire/framework';
|
|
134
134
|
|
|
135
135
|
import type { Message } from 'discord.js';
|
|
136
136
|
|
|
137
137
|
export class PingCommand extends Command {
|
|
138
|
-
public constructor(context:
|
|
138
|
+
public constructor(context: Command.Context, options: Command.Options) {
|
|
139
139
|
super(context, {
|
|
140
140
|
...options,
|
|
141
141
|
description: 'ping pong'
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
var i18next_1 = require("i18next");
|
|
4
5
|
(0, tslib_1.__exportStar)(require("./lib/functions"), exports);
|
|
5
6
|
(0, tslib_1.__exportStar)(require("./lib/InternationalizationHandler"), exports);
|
|
6
7
|
(0, tslib_1.__exportStar)(require("./lib/types"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyF;AACzF,+DAAgC;AAChC,iFAAkD;AAClD,2DAA4B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/plugin-i18next",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Plugin for @sapphire/framework to support i18next.",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"prepublishOnly": "yarn build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@sapphire/utilities": "^3.0
|
|
37
|
+
"@sapphire/utilities": "^3.1.0",
|
|
38
38
|
"@types/i18next-fs-backend": "^1.1.2",
|
|
39
|
-
"i18next": "^21.
|
|
40
|
-
"i18next-fs-backend": "^1.1.
|
|
39
|
+
"i18next": "^21.5.3",
|
|
40
|
+
"i18next-fs-backend": "^1.1.4",
|
|
41
41
|
"tslib": "^2.3.1"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "1240a7d977e81e90380905cd3de0c13114c80c3f"
|
|
76
76
|
}
|