@sapphire/plugin-i18next 2.3.2-next.c82f65b.0 → 2.4.0
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/CHANGELOG.md +231 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/lib/functions.d.ts +88 -9
- package/dist/lib/functions.d.ts.map +1 -1
- package/dist/lib/functions.js +20 -4
- package/dist/lib/functions.js.map +1 -1
- package/dist/lib/types.d.ts +17 -3
- package/dist/lib/types.d.ts.map +1 -1
- package/package.json +82 -77
- package/src/register.ts +38 -0
- package/LICENSE.md +0 -24
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
# [@sapphire/plugin-i18next@2.4.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.3.1...@sapphire/plugin-i18next@2.4.0) - (2022-04-18)
|
|
6
|
+
|
|
7
|
+
## Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **deps:** Update dependency i18next to ^21.6.15 ([5a5995c](https://github.com/sapphiredev/plugins/commit/5a5995cb7afa7691a889968519abf716c8e2f5ec))
|
|
10
|
+
|
|
11
|
+
## Documentation
|
|
12
|
+
|
|
13
|
+
- Update typedoc setup ([5c855bd](https://github.com/sapphiredev/plugins/commit/5c855bd8341f155a41c9b85738541f1f47ac837a))
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- **i18next:** Support interaction (#272) ([8681e7d](https://github.com/sapphiredev/plugins/commit/8681e7d4f649216ae63a24a3f18a45d78279bd50))
|
|
18
|
+
|
|
19
|
+
## [2.3.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.3.0...@sapphire/plugin-i18next@2.3.1) (2022-04-01)
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
- **deps:** update all non-major dependencies ([2377eb9](https://github.com/sapphiredev/plugins/commit/2377eb90c7a5efb65e2be242d492f06bd4841a2e))
|
|
24
|
+
|
|
25
|
+
# [2.3.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.2.3...@sapphire/plugin-i18next@2.3.0) (2022-03-06)
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
- **deps:** update all non-major dependencies ([2016134](https://github.com/sapphiredev/plugins/commit/201613418babe93748e74064cf66d4ea0582725c))
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
- allow module: NodeNext ([#251](https://github.com/sapphiredev/plugins/issues/251)) ([31bab09](https://github.com/sapphiredev/plugins/commit/31bab09834ebc1bc646e4a2849dbd24c65f08c0e))
|
|
34
|
+
|
|
35
|
+
## [2.2.3](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.2.2...@sapphire/plugin-i18next@2.2.3) (2022-01-23)
|
|
36
|
+
|
|
37
|
+
**Note:** Version bump only for package @sapphire/plugin-i18next
|
|
38
|
+
|
|
39
|
+
## [2.2.2](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.2.1...@sapphire/plugin-i18next@2.2.2) (2022-01-16)
|
|
40
|
+
|
|
41
|
+
### Performance Improvements
|
|
42
|
+
|
|
43
|
+
- **i18next:** "add" event is not necessary in chokidar ([#229](https://github.com/sapphiredev/plugins/issues/229)) ([138764c](https://github.com/sapphiredev/plugins/commit/138764cc140f74d2f2b3745ed838cac63ea97e4c))
|
|
44
|
+
|
|
45
|
+
## [2.2.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.2.0...@sapphire/plugin-i18next@2.2.1) (2022-01-14)
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
- **i18next:** postLogin hook register ([#228](https://github.com/sapphiredev/plugins/issues/228)) ([c67035e](https://github.com/sapphiredev/plugins/commit/c67035ef457ff390edfb30b8e2a664d4daeb7d9d))
|
|
50
|
+
|
|
51
|
+
# [2.2.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.1.6...@sapphire/plugin-i18next@2.2.0) (2022-01-13)
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
- **i18next:** add hot-module-replacement to reload i18next resources ([#224](https://github.com/sapphiredev/plugins/issues/224)) ([26a8c41](https://github.com/sapphiredev/plugins/commit/26a8c41bfcee9a2be9fc319df2ec8e542d8cb370))
|
|
56
|
+
|
|
57
|
+
## [2.1.6](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.1.5...@sapphire/plugin-i18next@2.1.6) (2022-01-09)
|
|
58
|
+
|
|
59
|
+
**Note:** Version bump only for package @sapphire/plugin-i18next
|
|
60
|
+
|
|
61
|
+
## [2.1.5](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.1.4...@sapphire/plugin-i18next@2.1.5) (2021-12-29)
|
|
62
|
+
|
|
63
|
+
**Note:** Version bump only for package @sapphire/plugin-i18next
|
|
64
|
+
|
|
65
|
+
## [2.1.4](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.1.3...@sapphire/plugin-i18next@2.1.4) (2021-12-28)
|
|
66
|
+
|
|
67
|
+
### Bug Fixes
|
|
68
|
+
|
|
69
|
+
- **i18next:** bump i18next dependency ([ebc32b0](https://github.com/sapphiredev/plugins/commit/ebc32b03288260359744810d8905b77fd7fc458c))
|
|
70
|
+
|
|
71
|
+
## [2.1.3](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.1.2...@sapphire/plugin-i18next@2.1.3) (2021-12-21)
|
|
72
|
+
|
|
73
|
+
**Note:** Version bump only for package @sapphire/plugin-i18next
|
|
74
|
+
|
|
75
|
+
## [2.1.2](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.1.1...@sapphire/plugin-i18next@2.1.2) (2021-12-06)
|
|
76
|
+
|
|
77
|
+
**Note:** Version bump only for package @sapphire/plugin-i18next
|
|
78
|
+
|
|
79
|
+
## [2.1.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.1.0...@sapphire/plugin-i18next@2.1.1) (2021-11-25)
|
|
80
|
+
|
|
81
|
+
### Bug Fixes
|
|
82
|
+
|
|
83
|
+
- **i18next:** bumped i18next dependendency to ensure transient dependency has latest fixes ([7cafdfc](https://github.com/sapphiredev/plugins/commit/7cafdfc1876d9d28af3c1b8decf047ab75f3f0bf))
|
|
84
|
+
|
|
85
|
+
# [2.1.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.0.2...@sapphire/plugin-i18next@2.1.0) (2021-11-21)
|
|
86
|
+
|
|
87
|
+
### Features
|
|
88
|
+
|
|
89
|
+
- expose and use namespaces for options, context, etc ([#176](https://github.com/sapphiredev/plugins/issues/176)) ([33452da](https://github.com/sapphiredev/plugins/commit/33452da808d91313a5d3bf680e11b5208ac67442))
|
|
90
|
+
- **i18n:** add `replyLocalized` ([#168](https://github.com/sapphiredev/plugins/issues/168)) ([4c51f52](https://github.com/sapphiredev/plugins/commit/4c51f52411d3a4f368db912dd840504622e4a373))
|
|
91
|
+
- **plugin-i18n:** add new syntax for formatters in i18next ([#167](https://github.com/sapphiredev/plugins/issues/167)) ([d0f01d9](https://github.com/sapphiredev/plugins/commit/d0f01d99a8e25929a819ae0d210596afdd208b62))
|
|
92
|
+
|
|
93
|
+
## [2.0.2](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.0.1...@sapphire/plugin-i18next@2.0.2) (2021-11-06)
|
|
94
|
+
|
|
95
|
+
### Bug Fixes
|
|
96
|
+
|
|
97
|
+
- **docs:** replace command usage of `run` to `messageRun` ([#160](https://github.com/sapphiredev/plugins/issues/160)) ([415adb8](https://github.com/sapphiredev/plugins/commit/415adb85b884da5d0f1f2ce07a9d46134f2bcb12))
|
|
98
|
+
|
|
99
|
+
## [2.0.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@2.0.0...@sapphire/plugin-i18next@2.0.1) (2021-10-17)
|
|
100
|
+
|
|
101
|
+
### Bug Fixes
|
|
102
|
+
|
|
103
|
+
- allow more node & npm versions in engines field ([ce5b12f](https://github.com/sapphiredev/plugins/commit/ce5b12f8142297bceda49b85574a95a3cf9112ab))
|
|
104
|
+
|
|
105
|
+
# [2.0.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@1.3.7...@sapphire/plugin-i18next@2.0.0) (2021-10-16)
|
|
106
|
+
|
|
107
|
+
### Bug Fixes
|
|
108
|
+
|
|
109
|
+
- **deps:** update all non-major dependencies ([#149](https://github.com/sapphiredev/plugins/issues/149)) ([1fe5598](https://github.com/sapphiredev/plugins/commit/1fe55980434b19bb024773a1878366320fa96004))
|
|
110
|
+
- **deps:** update dependency i18next to ^21.2.0 ([#146](https://github.com/sapphiredev/plugins/issues/146)) ([2509ee4](https://github.com/sapphiredev/plugins/commit/2509ee4c8d53cc8bf23f7b7b618d5a4be3f7c24b))
|
|
111
|
+
- **i18next:** change `Awaited` for `Awaitable` ([0e2e6ef](https://github.com/sapphiredev/plugins/commit/0e2e6ef104e66344608ca62f779829411122e84c))
|
|
112
|
+
- **i18next:** change how `fetchLanguage` is implemented ([#107](https://github.com/sapphiredev/plugins/issues/107)) ([30c8f7f](https://github.com/sapphiredev/plugins/commit/30c8f7f2ea4911c79ecb241e182500516e958fc5))
|
|
113
|
+
- **i18next:** remove @sapphire/pieces from install instructions ([7c17a92](https://github.com/sapphiredev/plugins/commit/7c17a925b7c66fdd5422d75a3674e420ddc474ce))
|
|
114
|
+
- **plugin-i18next:** re-added support for guild target ([#103](https://github.com/sapphiredev/plugins/issues/103)) ([a7152a8](https://github.com/sapphiredev/plugins/commit/a7152a8ba3baf0a5bee10e80bc7c33e11b03d4d3))
|
|
115
|
+
|
|
116
|
+
### Code Refactoring
|
|
117
|
+
|
|
118
|
+
- **plugin-i18next:** updated for discord.js@13 and framework@2 ([e041864](https://github.com/sapphiredev/plugins/commit/e04186461071179b96b918294b3f3085c328ede6))
|
|
119
|
+
|
|
120
|
+
### Features
|
|
121
|
+
|
|
122
|
+
- bump to discordjs v13.2.0 ([3d0e484](https://github.com/sapphiredev/plugins/commit/3d0e484eb9a5adb7fef3bb642e304e27072ed2b1))
|
|
123
|
+
- **i18next:** add `baseUserDirectory` as alternative path for the `languages` directory (takes precedence over root scan) ([#159](https://github.com/sapphiredev/plugins/issues/159)) ([f8621b0](https://github.com/sapphiredev/plugins/commit/f8621b088f0382221968dfefe4a48092c83cd73f))
|
|
124
|
+
- **i18next:** bump i18next dependency to v20 ([#125](https://github.com/sapphiredev/plugins/issues/125)) ([0023809](https://github.com/sapphiredev/plugins/commit/0023809ee73fd2cee6828d30a782d67a44e31bbf))
|
|
125
|
+
- **i18next:** update i18next dependency ([#129](https://github.com/sapphiredev/plugins/issues/129)) ([96519de](https://github.com/sapphiredev/plugins/commit/96519de5de253db390ed9a76ed073ffe1eabd187))
|
|
126
|
+
- **plugin-editable-commands:** added first version ([#106](https://github.com/sapphiredev/plugins/issues/106)) ([9af3e85](https://github.com/sapphiredev/plugins/commit/9af3e85a8641f852eaf114679ceed1e71034d16c))
|
|
127
|
+
- **subcommands:** migrate `Command#run` to `Command#messageRun` ([#157](https://github.com/sapphiredev/plugins/issues/157)) ([2960711](https://github.com/sapphiredev/plugins/commit/29607111c4e4f61ece463e10854982f205879996))
|
|
128
|
+
|
|
129
|
+
### BREAKING CHANGES
|
|
130
|
+
|
|
131
|
+
- **i18next:** i18next has been updated to v21.0.1. Please also seee the breaking changes for i18next [here](https://github.com/i18next/i18next/blob/master/CHANGELOG.md#2100) and their migration guide [here](https://www.i18next.com/misc/migration-guide#v-20-x-x-to-v-21-0-0)
|
|
132
|
+
|
|
133
|
+
- chore: activate renovate
|
|
134
|
+
- **i18next:** i18next dependency has been bumped to v20.x. As opposed to what the library does, this plugin will default the new option `ignoreJSONStructure` to `false`
|
|
135
|
+
- **i18next:** `fetchLanguage` has been moved from `ClientOptions` to `ClientOptions.i18n`
|
|
136
|
+
- **plugin-i18next:** Changed `InternationalizationHandler#options` to not be optional.
|
|
137
|
+
- **plugin-i18next:** Increase `@sapphire/framework` requirement to v2.
|
|
138
|
+
- **plugin-i18next:** Increase `discord.js` requirement to v13.
|
|
139
|
+
- **plugin-i18next:** Removed `I18nextClient#fetchLanguage` in favor of `InternationalizationHandler#fetchLanguage`.
|
|
140
|
+
- **plugin-i18next:** Removed `I18nextClient#i18n` in favor of `Context#i18n`.
|
|
141
|
+
- **plugin-i18next:** Removed `I18nextClient`.
|
|
142
|
+
- **plugin-i18next:** Removed `Message#editLocalized` in favor of `editLocalized(message, options)`.
|
|
143
|
+
- **plugin-i18next:** Removed `Structure#fetchLanguage` in favor of `fetchLanguage(structure)`.
|
|
144
|
+
- **plugin-i18next:** Removed `Structure#fetchT` in favor of `fetchT(structure)`.
|
|
145
|
+
- **plugin-i18next:** Removed `Structure#resolveKey` in favor of `resolveKey(structure, keys, options)`.
|
|
146
|
+
- **plugin-i18next:** Removed `Structure#sendLocalized` in favor of `sendLocalized(structure, options)`.
|
|
147
|
+
- **plugin-i18next:** Renamed `I18nextClientOptions` to `InternationalizationClientOptions`.
|
|
148
|
+
- **plugin-i18next:** Renamed `I18nextHandler` to `InternationalizationHandler`.
|
|
149
|
+
- **plugin-i18next:** Renamed `InternationalizationHandler.fetchLocale` to `format`.
|
|
150
|
+
- **plugin-i18next:** Renamed `InternationalizationHandler.fetchT` to `getT`.
|
|
151
|
+
- **plugin-i18next:** Require `discord.js` in `/register`.
|
|
152
|
+
- **plugin-i18next:** Simplified `editLocalized`'s overloads.
|
|
153
|
+
- **plugin-i18next:** Simplified `sendLocalized`'s overloads.
|
|
154
|
+
|
|
155
|
+
## [1.3.7](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@1.3.6...@sapphire/plugin-i18next@1.3.7) (2021-06-19)
|
|
156
|
+
|
|
157
|
+
### Bug Fixes
|
|
158
|
+
|
|
159
|
+
- remove peer deps, update dev deps, update READMEs ([#91](https://github.com/sapphiredev/plugins/issues/91)) ([3489b1d](https://github.com/sapphiredev/plugins/commit/3489b1dc1e8a7c64c255595b3d441cd0b5bac936))
|
|
160
|
+
- **i18next:** specify package side effects ([33fd1ec](https://github.com/sapphiredev/plugins/commit/33fd1ec86c671ef7419c709793d28c326d21ada7))
|
|
161
|
+
|
|
162
|
+
## [1.3.6](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@1.3.5...@sapphire/plugin-i18next@1.3.6) (2021-05-02)
|
|
163
|
+
|
|
164
|
+
### Bug Fixes
|
|
165
|
+
|
|
166
|
+
- drop the `www.` from the SapphireJS URL ([a86049f](https://github.com/sapphiredev/plugins/commit/a86049f185f0ccb12d61379dd82255b36d4fa145))
|
|
167
|
+
- update all the SapphireJS URLs from `.com` to `.dev` ([c5fd156](https://github.com/sapphiredev/plugins/commit/c5fd15691abb9a9712dc4b8aebd8400f6d91f719))
|
|
168
|
+
|
|
169
|
+
## [1.3.5](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@1.3.4...@sapphire/plugin-i18next@1.3.5) (2021-04-21)
|
|
170
|
+
|
|
171
|
+
### Bug Fixes
|
|
172
|
+
|
|
173
|
+
- change all Sapphire URLs from "project"->"community" & use our domain where applicable 👨🌾🚜 ([#75](https://github.com/sapphiredev/plugins/issues/75)) ([e437dc4](https://github.com/sapphiredev/plugins/commit/e437dc45fcd4d22ab2dcdb0e70c67cc5856883c0))
|
|
174
|
+
|
|
175
|
+
## [1.3.4](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@1.3.3...@sapphire/plugin-i18next@1.3.4) (2021-04-03)
|
|
176
|
+
|
|
177
|
+
**Note:** Version bump only for package @sapphire/plugin-i18next
|
|
178
|
+
|
|
179
|
+
## [1.3.3](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@1.3.2...@sapphire/plugin-i18next@1.3.3) (2021-03-16)
|
|
180
|
+
|
|
181
|
+
### Bug Fixes
|
|
182
|
+
|
|
183
|
+
- update dependencies, add tslib, bump framework to v1.0.0 ([880b761](https://github.com/sapphiredev/plugins/commit/880b7614d857f23fcbcd351e69795c451a95f49c))
|
|
184
|
+
|
|
185
|
+
## [1.3.2](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@1.3.1...@sapphire/plugin-i18next@1.3.2) (2021-02-16)
|
|
186
|
+
|
|
187
|
+
**Note:** Version bump only for package @sapphire/plugin-i18next
|
|
188
|
+
|
|
189
|
+
## [1.3.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@1.3.0...@sapphire/plugin-i18next@1.3.1) (2021-02-07)
|
|
190
|
+
|
|
191
|
+
### Bug Fixes
|
|
192
|
+
|
|
193
|
+
- **i18n:** update dependencies in package.json ([8d0381b](https://github.com/sapphiredev/plugins/commit/8d0381be7b5ecc837fd9883c6035d4a16c065448))
|
|
194
|
+
- **i18next:** properly augment Discord.js extensions ([#56](https://github.com/sapphiredev/plugins/issues/56)) ([6f5b1a9](https://github.com/sapphiredev/plugins/commit/6f5b1a9a05a6d0508e05a33ef23ec1027160df79))
|
|
195
|
+
|
|
196
|
+
# [1.3.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@1.2.1...@sapphire/plugin-i18next@1.3.0) (2021-02-03)
|
|
197
|
+
|
|
198
|
+
### Features
|
|
199
|
+
|
|
200
|
+
- **i18next:** respect alternative default handling ([#54](https://github.com/sapphiredev/plugins/issues/54)) ([5b12ba8](https://github.com/sapphiredev/plugins/commit/5b12ba8b4a321f73dd6b93c57ddd92143b796f08))
|
|
201
|
+
|
|
202
|
+
## [1.2.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@1.2.0...@sapphire/plugin-i18next@1.2.1) (2021-01-23)
|
|
203
|
+
|
|
204
|
+
**Note:** Version bump only for package @sapphire/plugin-i18next
|
|
205
|
+
|
|
206
|
+
# [1.2.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@1.1.0...@sapphire/plugin-i18next@1.2.0) (2021-01-12)
|
|
207
|
+
|
|
208
|
+
### Features
|
|
209
|
+
|
|
210
|
+
- **i18next:** store loaded namespaces ([#42](https://github.com/sapphiredev/plugins/issues/42)) ([978f0ad](https://github.com/sapphiredev/plugins/commit/978f0ad59a708ffabc02dda3f82fc84a69abf54d))
|
|
211
|
+
|
|
212
|
+
# [1.1.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-i18next@1.0.0...@sapphire/plugin-i18next@1.1.0) (2021-01-11)
|
|
213
|
+
|
|
214
|
+
### Features
|
|
215
|
+
|
|
216
|
+
- **i18next:** allow creating i18next options using namespaces and languages ([#41](https://github.com/sapphiredev/plugins/issues/41)) ([3efa231](https://github.com/sapphiredev/plugins/commit/3efa231421c590d8706afba5b066daaa51b5d175))
|
|
217
|
+
|
|
218
|
+
# 1.0.0 (2021-01-09)
|
|
219
|
+
|
|
220
|
+
### Bug Fixes
|
|
221
|
+
|
|
222
|
+
- **i18next:** add missing tslib dependency ([5687397](https://github.com/sapphiredev/plugins/commit/568739718dd028ba713f022404b94374729e398a))
|
|
223
|
+
|
|
224
|
+
### Features
|
|
225
|
+
|
|
226
|
+
- **i18next:** implement context and editing ([#35](https://github.com/sapphiredev/plugins/issues/35)) ([1849831](https://github.com/sapphiredev/plugins/commit/18498311766433bc6d2ad9956ca73b39d11b9139)), closes [#29](https://github.com/sapphiredev/plugins/issues/29) [#29](https://github.com/sapphiredev/plugins/issues/29)
|
|
227
|
+
- add plugin-i18next ([#29](https://github.com/sapphiredev/plugins/issues/29)) ([41e6581](https://github.com/sapphiredev/plugins/commit/41e6581199c971db4422fbc6fb411dfca2614dec))
|
|
228
|
+
|
|
229
|
+
### BREAKING CHANGES
|
|
230
|
+
|
|
231
|
+
- **i18next:** All aforementioned changes are breaking.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/i18next/index.d.ts","../../../node_modules/@discordjs/collection/dist/index.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/arraystrictequals.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/cast.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/chunk.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/utilitytypes.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/classextends.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/codeblock.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/cuttext.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/debounce/index.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/deepclone.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/filternullandundefined.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/filternullandundefinedandempty.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/filternullandundefinedandzero.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/hasatleastonekeyinmap.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/inlinecodeblock.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/isclass.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/isfunction.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/isnullorundefined.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/isnullorundefinedorempty.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/isnullorundefinedorzero.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/isnumber.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/isobject.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/isprimitive.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/isthenable.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/makeobject.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/mergedefault.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/mergeobjects.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/noop.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/objecttotuples.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/parseurl.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/partition.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/range.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/regexpesc.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/roundnumber.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/splittext.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/totitlecase.d.ts","../../../node_modules/@sapphire/utilities/dist/lib/tryparse.d.ts","../../../node_modules/@sapphire/utilities/dist/index.d.ts","../../../node_modules/@sapphire/pieces/dist/index.d.ts","../../../node_modules/discord-api-types/globals.d.ts","../../../node_modules/discord-api-types/payloads/v9/permissions.d.ts","../../../node_modules/discord-api-types/payloads/v9/emoji.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/internals.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/_chatinput/shared.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/_chatinput/base.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/_chatinput/string.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/_chatinput/integer.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/_chatinput/boolean.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/_chatinput/user.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/_chatinput/channel.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/_chatinput/role.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/_chatinput/mentionable.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/_chatinput/number.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/_chatinput/subcommand.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/_chatinput/subcommandgroup.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/chatinput.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/contextmenu.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/permissions.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/applicationcommands.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/responses.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/base.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/messagecomponents.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts","../../../node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.d.ts","../../../node_modules/discord-api-types/payloads/v9/interactions.d.ts","../../../node_modules/discord-api-types/payloads/v9/sticker.d.ts","../../../node_modules/discord-api-types/payloads/v9/channel.d.ts","../../../node_modules/discord-api-types/payloads/v9/gateway.d.ts","../../../node_modules/discord-api-types/payloads/v9/stageinstance.d.ts","../../../node_modules/discord-api-types/payloads/v9/voice.d.ts","../../../node_modules/discord-api-types/payloads/v9/guildscheduledevent.d.ts","../../../node_modules/discord-api-types/payloads/v9/guild.d.ts","../../../node_modules/discord-api-types/payloads/v9/user.d.ts","../../../node_modules/discord-api-types/payloads/v9/teams.d.ts","../../../node_modules/discord-api-types/payloads/v9/application.d.ts","../../../node_modules/discord-api-types/payloads/v9/webhook.d.ts","../../../node_modules/discord-api-types/payloads/v9/auditlog.d.ts","../../../node_modules/discord-api-types/payloads/v9/invite.d.ts","../../../node_modules/discord-api-types/payloads/v9/oauth2.d.ts","../../../node_modules/discord-api-types/rest/common.d.ts","../../../node_modules/discord-api-types/rest/v9/auditlog.d.ts","../../../node_modules/discord-api-types/utils/internals.d.ts","../../../node_modules/discord-api-types/rest/v9/channel.d.ts","../../../node_modules/discord-api-types/rest/v9/emoji.d.ts","../../../node_modules/discord-api-types/rest/v9/gateway.d.ts","../../../node_modules/discord-api-types/rest/v9/guild.d.ts","../../../node_modules/discord-api-types/rest/v9/guildscheduledevent.d.ts","../../../node_modules/discord-api-types/rest/v9/webhook.d.ts","../../../node_modules/discord-api-types/rest/v9/interactions.d.ts","../../../node_modules/discord-api-types/rest/v9/invite.d.ts","../../../node_modules/discord-api-types/rest/v9/oauth2.d.ts","../../../node_modules/discord-api-types/rest/v9/stageinstance.d.ts","../../../node_modules/discord-api-types/rest/v9/sticker.d.ts","../../../node_modules/discord-api-types/rest/v9/template.d.ts","../../../node_modules/discord-api-types/rest/v9/user.d.ts","../../../node_modules/discord-api-types/rest/v9/voice.d.ts","../../../node_modules/discord-api-types/rest/v9/index.d.ts","../../../node_modules/discord-api-types/payloads/v9/template.d.ts","../../../node_modules/discord-api-types/payloads/v9/index.d.ts","../../../node_modules/discord-api-types/gateway/common.d.ts","../../../node_modules/discord-api-types/gateway/v9.d.ts","../../../node_modules/discord-api-types/rpc/v9.d.ts","../../../node_modules/discord-api-types/utils/v9.d.ts","../../../node_modules/discord-api-types/v9.d.ts","../../../node_modules/zod/lib/helpers/typealiases.d.ts","../../../node_modules/zod/lib/helpers/util.d.ts","../../../node_modules/zod/lib/zoderror.d.ts","../../../node_modules/zod/lib/helpers/parseutil.d.ts","../../../node_modules/zod/lib/helpers/errorutil.d.ts","../../../node_modules/zod/lib/helpers/partialutil.d.ts","../../../node_modules/zod/lib/types.d.ts","../../../node_modules/zod/lib/external.d.ts","../../../node_modules/zod/lib/index.d.ts","../../../node_modules/@discordjs/builders/dist/index.d.ts","../../../node_modules/discord.js/node_modules/@discordjs/collection/dist/index.d.ts","../../../node_modules/form-data/index.d.ts","../../../node_modules/@types/node-fetch/externals.d.ts","../../../node_modules/@types/node-fetch/index.d.ts","../../../node_modules/@types/ws/index.d.ts","../../../node_modules/discord.js/typings/enums.d.ts","../../../node_modules/discord.js/typings/rawdatatypes.d.ts","../../../node_modules/discord.js/typings/index.d.ts","../../../node_modules/anymatch/index.d.ts","../../../node_modules/chokidar/types/index.d.ts","../../../node_modules/@types/i18next-fs-backend/index.d.ts","../src/lib/types.ts","../src/lib/functions.ts","../../../node_modules/lexure/dist/types/tokens.d.ts","../../../node_modules/lexure/dist/types/parseroutput.d.ts","../../../node_modules/lexure/dist/types/option.d.ts","../../../node_modules/lexure/dist/types/result.d.ts","../../../node_modules/lexure/dist/types/args.d.ts","../../../node_modules/lexure/dist/types/lexer.d.ts","../../../node_modules/lexure/dist/types/loopaction.d.ts","../../../node_modules/lexure/dist/types/loops.d.ts","../../../node_modules/lexure/dist/types/unordered.d.ts","../../../node_modules/lexure/dist/types/parser.d.ts","../../../node_modules/lexure/dist/types/util.d.ts","../../../node_modules/lexure/dist/types/index.d.ts","../../../node_modules/@sapphire/ratelimits/dist/lib/ratelimitmanager.d.ts","../../../node_modules/@sapphire/ratelimits/dist/lib/ratelimit.d.ts","../../../node_modules/@sapphire/ratelimits/dist/index.d.ts","../../../node_modules/@sapphire/discord-utilities/dist/lib/regexes.d.ts","../../../node_modules/@sapphire/discord-utilities/dist/lib/limits.d.ts","../../../node_modules/@sapphire/discord-utilities/dist/index.d.ts","../../../node_modules/@sapphire/discord.js-utilities/dist/index.d.ts","../../../node_modules/@sapphire/framework/dist/index.d.ts","../src/lib/internationalizationhandler.ts","../src/index.ts","../src/register.ts","../src/lib/augmentations.d.ts","../../../node_modules/@babel/types/lib/index.d.ts","../../../node_modules/@types/babel__generator/index.d.ts","../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../node_modules/@types/babel__template/index.d.ts","../../../node_modules/@types/babel__traverse/index.d.ts","../../../node_modules/@types/babel__core/index.d.ts","../../../node_modules/@types/ioredis/index.d.ts","../../../node_modules/@types/bull/index.d.ts","../../../node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../node_modules/@types/istanbul-reports/index.d.ts","../../../node_modules/chalk/index.d.ts","../../../node_modules/jest-diff/build/cleanupsemantic.d.ts","../../../node_modules/pretty-format/build/types.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/types.d.ts","../../../node_modules/jest-diff/build/difflines.d.ts","../../../node_modules/jest-diff/build/printdiffs.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/minimist/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/parse-json/index.d.ts","../../../node_modules/@types/prettier/index.d.ts","../../../node_modules/@types/psl/index.d.ts","../../../node_modules/@types/redis/index.d.ts","../../../node_modules/@types/stack-utils/index.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2f93dda35dafec68ec217c9ce67f0f4fbbbb030c055ac312641565ad60dd7e26","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"12f4cfe2fe60b810c3174537bc2ddb20c1067b7768643d12cb1266fd183afb75","5d8a54affc9a33b29830ad949f6e247314cbb7f85287231b07b66611bacf795f","05025e02d07b42a9d65f68282cdfbea2c9a51a33561f914aa0c83f2df2dc34bc","e97508dee939ae29977082f5bb1b8cf9c1cf45d3fdeb337039562182c51533f2","b5c4a6079d44a94888a8197c1641f583c28a9c9cbd5f43d5eefb91e32c7275b8","d29b5fb22613d6b42b190b2768f3ff238236978791ad05ba36b28623444fd309","72e9bc2e435c9d6e83b2d46764c0d87c8aefb3ad4e7c1ba059e3859e4318d0a5","f96cf46e0a882edbd46e1938d23e0fded20e8f86a94e3060d5864a19bcc30953","6873fe9695582678987b02c82f7b5eb075b104eb0a59cd874b02abd11f444133","8a85d79cf5f5a0ea032306dd255f1d4d8ba792368faa69eae57056c3e5d89786","e0720c0096e3749e2d24eff2c8f8cc906f0064cd6ccfed028619dd799f914329","721b522722a1fb5807698552ed1b974cd169ec344118a5cc1a176b042a94f430","378a3e559d3915e3e67f2caefde272bcd1609a75dbba6aa7b103dbaf5f99614a","b0cdd7da8ff86a6f3c8b634b6b1098481963f759e46e906f06dd785196b6a06a","83f6bdd3502368b731a9573f279352e88af5717ac3528605f98a1d18307b35f1","c6509f6a018fb1861e6fd94dde81d7c5ba08a660441673f09a3061df76cd79f3","09a3993362e573e7a07c81c23a642f71406361ea650f2660744bc1fa712f1c60","e05cafa4d712ae34e8ce084eda1f707fbe1008777d9ff6272123ed848938aac7","e28344b607d9e005588c5710393eb70bf4179db89f2c2b6c29579581ff5b1f2e","74b7605636aebdd2f681acadbb9ec6779a3ed64f1d4920ae2a8963500e994325","eb72c15ca967cf2e95abdb6188aa316f438a2c2c0081ab1f0fc52a103dfe6440","6fa9995e489bafca2eaba9b8dbbaef24f86d8cc52a7f6ea2d3b4377f4e20a2d0","7af4ec36327a8acc60de69c6755d5547fec214bc308eb38279506c94d7f30dfb","cd83948a557b992b6ca00966e6ed43cfa47a8be439d08df894f1d8f7bbd63881","3872ab3e295d45c4e1e63fad766b41bb2b8e3faac7ccef95d86a986198e62df1","77777be0f9f1de16cea711e2b67e8cb4424fb5800e7eca31578f56367167272d","aea9363b86441a6946f5e8eac3160f4cc81e96df3e65ad341294f68bd006b3eb","cd449cc00e95b3610fe1d18b77e1e8a0a8399c08769ea2845bbb7b1cb1e1d521","664bc7dd4497999693e26940b95dc42cfcf4df00ad184319b2651ef84d014773","96e6bf811343caab5112b68880905c5d20d9257054afac6c18e718a4c549ed27","868cc469f2b9da79f82251bce3fb57c02d4817ee27aeb44c03db41e5c7b1e584","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"c2ab70bbc7a24c42a790890739dd8a0ba9d2e15038b40dff8163a97a5d148c00","affectsGlobalScope":true},"422dbb183fdced59425ca072c8bd09efaa77ce4e2ab928ec0d8a1ce062d2a45a",{"version":"fcdcb42da18dd98dc286b1876dd425791772036012ae61263c011a76b13a190f","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","98a3ebfa494b46265634a73459050befba5da8fdc6ca0ef9b7269421780f4ff3","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","cc0b61316c4f37393f1f9595e93b673f4184e9d07f4c127165a490ec4a928668","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"b8aca9d0c81abb02bec9b7621983ae65bde71da6727580070602bd2500a9ce2a","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","ad41bb744149e92adb06eb953da195115620a3f2ad48e7d3ae04d10762dae197","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"287b21dc1d1b9701c92e15e7dd673dfe6044b15812956377adffb6f08825b1bc","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"4cd4cff679c9b3d9239fd7bf70293ca4594583767526916af8e5d5a47d0219c7","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","103d70bfbeb3cd3a3f26d1705bf986322d8738c2c143f38ebb743b1e228d7444","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","c5d4f20e56502eeb4a835541b70ef21c9973f7328df36703a86f466b90580234","a92718a351cdc2d46ef7f1ecd65a967fb5231ebba4330b11af913a18e2583b0a","83ebd1e9bf120b41999d45c3d0a4f9d2c63063bca0f914492924888c2c53309b","00e01b8b372f7f205d71cbfdf6ac5d8a01fe87950a67fe0ebfb2bb87d0c146b3","2e6a91f6ffc4a08b4079feba724fb141b3cebb3a60b20938569163ef6410e0d1","fd31e6544f0f7dc9db92faa6e473a59f53cc3f9e35dc0e3db47c513480953f30","8191e13fa37c4be02dd51d6498695dd3680a2c23e5562ce6d2bb8d935930432d","858b4aeb7ea5dd90650811b071b7e5b41729606d2ee77a3afdb2f899280afdc8","41c32e1871b9696c752257a641177958e0d42b1c2e41d4c56cb600b1ac281fdc","cca1a70dbc1c5d02487d1720305062354c8c428e6d8c81fa3f8478937976d8b1","eabab93ca9a786745af72195153280e883d8e36df9829ecf8b2f539824d042be","d3ed0bdc7460d95a90732872f2861a60f064318b8bad8ad4432d1c04e825c3e4","681f35c141c7a6201d5ffc038fbc28e46fb7a8702fc52b29d2d2dc7ca03328c2","cdb9451988aef334a797bc31eed3235d7b471a6e013bd2ccc92fbf89a535f4d7","8cedbf274baeb7b06233ee4adce9da566fc4c496d88b3fc6dbb58e27b7b90f58","f74b7a54220bc565c738b824fdc2f063ca727001ee9f332d5c399bc59071611f","c7f940a988e13a3948197c3448e896087f598a5a4c7814030d1e54332043d1af","55518514e8bff9cebd363d735c3e85ba1c6f7588c9f320dbc1d565086ef2fc48","9f7e239f4945672307c7d4403aa22bfe3d03f438fa072d7f158095f7df724e9f","7c5073d67f4f2546f368fe635573cfe6de977ed82318d01be15cee4c76c81199","7428869b608e55da6957d000ef9af727ec7424ebef7d2accc3901287c588b5e5","ddef4fa1fd835adfae5660c6c98b24b602fbb65db1e2570fa5d9e947ad5cb17f","e7fb389e0c13e2120c9a8c824ddfabe18e56c316e53e66072e8d86e0610791e6","1b1bd699dfd3c316e64d0d40ce6e35265c24d25a18f6a4505904a0cc21f1ff67","8441a2b8098131edeec9b5092ae81903938a8c3ec8871de2502decff35ccda50","7dbf615f4a2003faa46d93052c7abaa635aa541e266090b0b2350f40f3ae3242","9575d7cfbd601fda04531bb7a10dcc68529554c484e93e5f85a39e2101988612","d91ebb09c2ae0cf320b66c42db3811e4cc8a8ebfc63c3b1e0ee0085cf1fa51ef","b044fccf84b0f5c7cd8a1800a2ef0a7b740c062245823ce009265f4db3942623","97e85df57e051301f940bad38a1e521bf4bd5e98da75554223cd30b0126b29f3","7c717290cb697d86874835037c8aab715d9477e7377c2a53198f2093c0addb2a","e285d39bd2590bf6e30dc326b513ffbc6e7ca2d67fcd94f2761e7f54cfa46dfc","d0d504c82b2a5d2bf48b951a5502ac7284ed974e3249a4fd1c795522c11d9a0d","168eef670afa53e786ccb6afbf3cb78457ff6cc90064e80f0bc5da96cffda665","5651b6955a71b3733260dcf5f7d90f9d648d70b0c1fe24ff8bdcda589f60cbff","36ef474db058911c62a48e6137965cb1dbbdef6a5c97b6887795984d9ee53afb","f416e94790298bdfb37bdc8adb84239880af9224fb1c8513386a6e380aee805d","22af4d26bffe0e8c6c84e9d0d524d9cf770475365ca1c87467dbadd472c90b87","79ce4bd3aabe9f6232bbf25eeaad9994ca94f416139224ebb01085e5ec8290af","fef0f40e32a9e21e58a8ed60607caa0037e55c4c6fe3c842a5c3bd54888f9afa","aebf66a3565c822b77a0c63280f3b07ef3040c985cfea54ad60e91f93b171ab9","aaed09d856decdec134bd8c26a6cbf7d2584bf80c9e89c44c97e267b394b471b","6e18d45952d633c80a1d3a18171aa4a99d3dd0a1615ac2fd88fa93ec01d18ae8","ea4676f9da6673aa1835921f4d9ade3c9fa36a874633b9b90c3dbcde901da3a2","d110ef7cb005b60066855a3d0613dcb33e78c88ab48f1a94be49d8670d9b5496","f3eced93d63b305dd25c3bc0f550921dda3e40acab73276a929e9d01afe44ffe","236a8048bc96944178f7459a0533cc3002e4f923a5f9bca88834d0d2a9290483","d5a60529c38f737d3567074f9a4ec7e4da7759df10912cad6f3d8bdbe662e9a1","4334f5fea672cd97484fa8ef470e5656d0f1bfcc48af553b7f1565bd46f96497","22b6cddb5322bfe32a890fdd3f3a06264d1539f892e3a4f6dbf6f3aa8135883f","3da82fc6ac4649060e524e8bce0b8ba8fe9b17716961f859d30df03734841211","f29e54511f37f6b0c8fa2825db6498afb9ffe2ab828ea6e692b68529cdba7482","437b16e89921dc25ab6313e6685d08c6de6a7df806ff0ffd83596116cb69a0ca","6028cfd2497f620b82b9e75502d3ae11dbb22b87286e2f21859cd5818f75ce9e","543771e77174eda3343f06a7edd0af8b044d83ac8b5e73ec7fbe576fa090d4a2","3134088754c10c988c58ad5cc63b6746e390d72c14a89d73a56100656925b532","95f782b13666a491781b662afacf326f2733f44d8e69a3302ef6e8f30e5784e4","b26659455eb3489593a2bc52a3db4ba638ac626b3a6b2c487c60616846eb33bb","3eba383986313232108bd804db31b71f60367732f6bb08b0a595089efb8f2652","0421ecd58522337c4659fd264eaa659281f494811728c6c9cb873f027719e9d8","5997a6356ec3bca0376b56cd4273adff367934c192e80acb9ca84b2a141727be","fa51e795c197f47e1637261e029249887cd04c36ca9b811d08af8604d8691dc8","d49cc486d093e5e8ae1c26ab9ef34ff6aa3b370173b72a8c7f26d5405abbd896","eb01a7a34a9801b025e68ffcfeba35878026ef0aed36c5d5c1167c27509e68ba","60935703b458c8c407471d3a87112e7733cae17198cf1fa254020c0ffed85b1d","eeabb4e164fe8fbc0caf6afec094230498edc84e7239a3ad38b9c9255b36f80b","e6c450d02573f08e0b7253cbfadd93855c2353344e38b0681c06d44c3caaa6a3","cae3abdc49bdbbefe16879b9e0e08a7c1c8cd2864b7d64645dff1112901145ba","301c604c264389f8f6b4911830488dade60db491489c53b8e7f782616e2b9385","37f92d1fb75f356fcb796bd0dcb65a8a49c93676c1804c13649a690abdd6f2a3","bad7ce18863ea540ea1b6a908f14bb407eeb8ba629f5daed791740cf6512c10e","bc75aa14918b32aab1b84c9f036e0d0636a67a34d87a5c9b8663a43434cb46bf","d9de6be7ea546933d744a8f6c222ce18f840a68cddc8eac8c5a4af37fbc6d802","06511a15f80ee05b40d987fe15532069416e8276d6cd0b0112e6bf058c975ffe","880787c9fb1ef2e540e1f3316ef53d3fb3ce65fc286afc7a060532e8996d475d","9afae14803f3b7343ed6d193173008715c1fa3421a353a818c805244ed737a84","b8f69821bf8ab4ea69e27ab820a02b0cfae16d5d00e763259dc51da9884af07f","b0e09d1f1d4343ee05b4b630d403cd311ee020376f8b3675bb23affc8d5170e1","3400d707f5e0e77db2566b790ff9b66833d9c7d5bf6a24153c6d80d24983f129","98a9cc18f661d28e6bd31c436e1984f3980f35e0f0aa9cf795c54f8ccb667ffe","72efc3e8cee3cb13144cb63bb8aacf28f918439a2ff222de89e0e5d7ba9c7170","a9f940f2463ad6023354a5f8547cf57cd83fb08e980ae225ea23ca826b364622","2fd968ee6d4b658c4e291f550da77463508ca3dca8c9e301b9e53293ed295a81","d1f62988c7e8e8650f7ed39520a766648155abbf75dd89f60e24f069433301d4","5ee80e0f257336250b9db7ff9f444a31e8bbe8d572e2a128d0d47322a790ce15","ee20d6364acdfe569d2a3e97d1e2a062d64d8b658fa117037a0b2215abd7f163","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","208bb742e0f201470da121bc73847c74b62cff4172f38ae5949ae77d6c9c6b71","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568","b4358a89fcd9c579f84a6c68e2ce44ca91b07e4db3f8f403c2b7a72c1a1e04b6","4b5ecb9edde130bbc95224b449b4eae534ee9ad3e2fa955815d2f688a2cd8dbc","c928bb9d9f991e1065e1bdc5658e146279d1467607cd56fe2db448adca9096aa","17b3f7c0fe1e00b8e0657f9ce734b1d15114049c4e7133c7d4adf5eceff6f897","4fb0b7d532aa6fb850b6cd2f1ee4f00802d877b5c66a51903bc1fb0624126349","a7e430e32eaefba6b1ebf23a94a4562bfe7051cc83558d33ddc8ff342f3c18e9","d0cace556e7818ff62a68da0dc704f6fd44e04c201886d610c186743adced2dd","8ca853cb2492363b121c37a661471f8088302c35a86e9bb37106e84d71006faa","97f6a1caeed7d99bc9eb8f2a67ea624d7f61b6fb8bf3a1f1bbcf9a08d05dd6a8","ffa9a6756f89a0fc1020acfda4330a5b6362df5445dca833411e940ded2ff7d1","67c83af87c42a3f0a1dfed03c6a181c511b1dc940d788bd5e21a9c6b15b5e29d","6ff15981b302cd2248c87954e5b6bd33e35834be2e3606aad4893b0227c69025","3868aa2ad5a554921eacde16b732b6a0a88dd90f8adf22e0ceae5336f0338554","85363f2ff7774d0c494851e75c62e50d2ccc0650ab26697ada4d1dea8400e0ac","3591f3d233931b519ab37f4cdecdebe7a57b94ffbd1b330412522f508750a70c","2276b1681c76d1a5165695896ed10106197946f0912984d9f42f6a014f25b347","c2f8e065352a0d2527562e133c6e049a2d51bea3b5f5e0064625a7c8c05b6dde","bdcb3460fd01e79780b1afae1bb077b13a56ce6ca81384d26f4e088e8b788796","e95f615c89a977906e66875bb667ced09d5145ac10377e0cd532b84f3cffccd7","0075eff87ccf11943487a5efca13595645bde503315d50509c487b6f94948ddf","4a1c4bd7d4b874418c8958e8c4f9ff1ba4cae77748897260fa2263d8d94f06aa","7b75e12a57b1c171553338d3540ca9ccc060a7bcf65685fd66df10af9a20d29b","4500e55196732b975543495a7662718f582fc845aa356c590cfd0788d5ac2ed3","99447ad062d5f7892b53e0403806c5199f6a894f6d6300c98de7c52cb539ac6e","71fb9695201173e862e21734a932cb532baeb4f4c6974a25e6c1ea8cbf6d36a5","04e3c54c3680d96a71f48a13722e2188e4d278a8a97ff23c61f8fe4dc4bcc83d","0c01be0accedc354136aa2744a9bb931c6a103d8b3d40094dc3e7d0bfbb0c1d6","5697334389754024527902a9f3209e4e01f3205ab82bbca4056fc949c170f105","509cdbbb628c111173b5e800d81e95fdc27b6aa2ae3d403f851862e29a3be0bd","2906d1469a4163ddcb117ba9cc86318b07002f1f517dfc287568e94a80932c63","a6d125c633f05c7397037c90430500865903448968671715a345c78ef5baa53f","859ad3564955f0bb219c5f3cb386d9f41026fa88985f48aa97ea622429703cef","fbc8253ccd8a744ee6314675575b3eda9f131f7cd8395eb476da6cccf151855a","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","1a7cc144992d79b062c22ac0309c6624dbb0d49bbddff7ea3b9daa0c17bcac0a","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","159bda82b67a7aa30cf7dcf0110cad83bcc6620396830efd470890f0caa6c9c0","5426e62886b7be7806312d31a00e8f7dccd6fe63ba9bbefe99ee2eab29cc48a3","be00321090ed100e3bd1e566c0408004137e73feb19d6380eba57d68519ff6c5","dd122fcdd4acbee2a2b14f74c8208dae9d832d533996d74d4ab884d48665bc3d","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73",{"version":"3fe15a491a792852283caeece8142bc7427a29c183d9fec8691d95a49c8932a1","affectsGlobalScope":true},"f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","429b6df7d7b94389bd42cfdf39bccea903acd3628498cec6172302801fbeac89","88ff5ebe7bf1c6b5ab736bcfa1fcac6f02c8aa3fc110f2bffe88434c654aec61","1746ef6931d8b4739de3cd6c82d09f5b8edfef49825e1fb5e88b93c52df3fecd","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":true,"importsNotUsedAsValues":2,"module":1,"newLine":1,"noEmitHelpers":true,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","preserveConstEnums":true,"removeComments":false,"rootDir":"../src","sourceMap":true,"strict":true,"target":7,"tsBuildInfoFile":"./.tsbuildinfo","useDefineForClassFields":true},"fileIdsList":[[124,254],[124],[123,124,142,206,215],[124,245,246],[124,140,206,222,224,247,249,252],[96,123,124,131,140,141,224,241,244,248,249,252,253],[52,124,140],[124,242,243],[124,242],[124,243],[53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,124,132,133,134,135,136,137,138,139],[56,124],[123,124,131],[124,254,255,256,257,258],[124,254,256],[96,124,260],[97,124,131],[51,124],[96,113,120,124,131],[124,263],[124,264],[124,269,274],[99,123,124,131,218,219],[81,124],[84,124],[85,90,124],[86,96,97,104,113,123,124],[86,87,96,104,124],[88,124],[89,90,97,105,124],[90,113,120,124],[91,93,96,104,124],[92,124],[93,94,124],[95,96,124],[96,124],[96,97,98,113,123,124],[96,97,98,113,124],[99,104,113,123,124],[96,97,99,100,104,113,120,123,124],[99,101,113,120,123,124],[81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130],[96,102,124],[103,123,124],[93,96,104,113,124],[105,124],[106,124],[84,107,124],[108,122,124,128],[109,124],[110,124],[96,111,124],[111,112,124,126],[96,113,114,115,124],[113,115,124],[113,114,124],[116,124],[117,124],[96,118,119,124],[118,119,124],[90,104,113,120,124],[121,124],[104,122,124],[85,99,110,123,124],[90,124],[113,124,125],[124,126],[124,127],[85,90,96,98,107,113,123,124,126,128],[113,124,129],[96,113,124,131],[96,99,101,113,120,123,124,129,131],[124,285],[96,97,124,131,225],[124,142,184,201,202],[124,146],[124,146,147],[124,142,146,147,169],[124,142,146,147],[124,146,147,158],[124,146,147,156],[124,142,145,146,148,149,150,151,152,153,154,155,156,157,161,163,201],[124,142,145,161,163,169,175],[124,142,161],[124,142],[124,142,158,159,160,162,163,169,174],[124,201],[124,142,162,169,174,175],[124,163,167,169],[124,162,163],[124,161,201,206],[124,142,175,176],[124,142,143,168,169,171,173,174,175,178],[124,142,143,144,167,168,174,175,177],[124,142,143,175],[124,142,144,169,175],[124,142,143,144,168,169,170,171,172,173,175],[124,142,174,175],[124,143,144,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,200],[124,161,162,163,164,165,166],[124,169,171,173,174,175,177],[124,142,174],[124,142,175],[124,142,175,199],[124,142,201],[124,142,179],[124,142,184,201],[124,142,184,185,201],[124,142,184,206],[124,142,182,183,185,186,187,188,189,190,191,192,193,194,195,196,197,198],[124,184,190,201],[124,184,201],[124,142,199,201,203,204,205],[86,96,101,113,124,128,206,216,217,220,221,222,223],[124,206,224,249,252],[99,113,124,131],[124,267,270],[124,267,270,271,272],[124,269],[124,266,273],[124,230,231,232,233],[124,230,231,232,233,234,235,236,237,238,239,240],[124,230],[124,233,236],[124,230,231,238],[124,232,233,236],[124,268],[124,207,209,210,213],[124,209],[124,215],[124,214],[124,207,208,209,210,211,212],[124,207,208,210],[50,51,124,228,229,250],[124,141,249,250,252],[50,51,124,140,141,224,228,249,252,253],[50,51,98,106,124,140,141,227,228,249,252,253],[50,51,124,140,224,226,227,249,252],[50,124,141,224,226,249,251,252,253]],"referencedMap":[[256,1],[254,2],[216,3],[52,2],[247,4],[246,2],[245,2],[248,5],[249,6],[141,7],[244,8],[243,9],[242,10],[140,11],[53,2],[54,2],[55,2],[57,12],[58,2],[59,2],[60,2],[61,2],[62,12],[63,12],[64,12],[65,2],[66,2],[67,12],[68,2],[69,12],[70,12],[71,12],[72,2],[73,12],[74,2],[75,2],[76,2],[77,12],[78,2],[79,2],[80,2],[132,13],[133,2],[134,2],[135,2],[136,2],[137,2],[138,2],[139,2],[56,2],[259,14],[255,1],[257,15],[258,1],[261,16],[262,17],[227,18],[260,19],[263,2],[264,20],[265,21],[275,22],[276,2],[277,2],[278,2],[219,2],[220,23],[81,24],[82,24],[84,25],[85,26],[86,27],[87,28],[88,29],[89,30],[90,31],[91,32],[92,33],[93,34],[94,34],[95,35],[96,36],[97,37],[98,38],[83,2],[130,2],[99,39],[100,40],[101,41],[131,42],[102,43],[103,44],[104,45],[105,46],[106,47],[107,48],[108,49],[109,50],[110,51],[111,52],[112,53],[113,54],[115,55],[114,56],[116,57],[117,58],[118,59],[119,60],[120,61],[121,62],[122,63],[123,64],[124,65],[125,66],[126,67],[127,68],[128,69],[129,70],[279,2],[280,2],[281,2],[282,2],[283,71],[284,2],[221,72],[285,2],[286,73],[225,2],[266,2],[226,74],[202,2],[203,75],[142,2],[147,76],[150,77],[152,78],[149,77],[154,79],[155,77],[153,79],[146,2],[148,77],[156,80],[157,81],[151,79],[158,82],[159,83],[145,84],[160,85],[161,86],[166,87],[163,88],[164,89],[165,90],[162,91],[177,92],[179,93],[169,94],[144,95],[170,96],[174,97],[173,98],[201,99],[167,100],[180,101],[181,2],[143,85],[171,102],[168,103],[176,103],[200,104],[175,102],[172,102],[178,105],[182,2],[183,106],[185,107],[186,107],[187,87],[188,108],[189,109],[199,110],[191,111],[192,105],[193,105],[194,107],[195,112],[196,112],[197,107],[198,87],[190,107],[204,2],[184,2],[205,87],[206,113],[217,2],[222,2],[224,114],[223,115],[218,116],[51,2],[267,2],[271,117],[273,118],[272,117],[270,119],[274,120],[234,121],[241,122],[235,123],[236,2],[237,124],[232,2],[239,125],[231,123],[233,2],[230,2],[238,2],[240,126],[269,127],[268,2],[50,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[40,2],[36,2],[37,2],[38,2],[39,2],[8,2],[44,2],[41,2],[42,2],[43,2],[45,2],[9,2],[46,2],[47,2],[48,2],[1,2],[10,2],[49,2],[214,128],[211,2],[210,129],[212,130],[207,2],[208,2],[215,131],[213,132],[209,133],[251,134],[253,135],[229,136],[250,137],[228,138],[252,139]],"exportedModulesMap":[[256,1],[254,2],[216,3],[52,2],[247,4],[246,2],[245,2],[248,5],[249,6],[141,7],[244,8],[243,9],[242,10],[140,11],[53,2],[54,2],[55,2],[57,12],[58,2],[59,2],[60,2],[61,2],[62,12],[63,12],[64,12],[65,2],[66,2],[67,12],[68,2],[69,12],[70,12],[71,12],[72,2],[73,12],[74,2],[75,2],[76,2],[77,12],[78,2],[79,2],[80,2],[132,13],[133,2],[134,2],[135,2],[136,2],[137,2],[138,2],[139,2],[56,2],[259,14],[255,1],[257,15],[258,1],[261,16],[262,17],[227,18],[260,19],[263,2],[264,20],[265,21],[275,22],[276,2],[277,2],[278,2],[219,2],[220,23],[81,24],[82,24],[84,25],[85,26],[86,27],[87,28],[88,29],[89,30],[90,31],[91,32],[92,33],[93,34],[94,34],[95,35],[96,36],[97,37],[98,38],[83,2],[130,2],[99,39],[100,40],[101,41],[131,42],[102,43],[103,44],[104,45],[105,46],[106,47],[107,48],[108,49],[109,50],[110,51],[111,52],[112,53],[113,54],[115,55],[114,56],[116,57],[117,58],[118,59],[119,60],[120,61],[121,62],[122,63],[123,64],[124,65],[125,66],[126,67],[127,68],[128,69],[129,70],[279,2],[280,2],[281,2],[282,2],[283,71],[284,2],[221,72],[285,2],[286,73],[225,2],[266,2],[226,74],[202,2],[203,75],[142,2],[147,76],[150,77],[152,78],[149,77],[154,79],[155,77],[153,79],[146,2],[148,77],[156,80],[157,81],[151,79],[158,82],[159,83],[145,84],[160,85],[161,86],[166,87],[163,88],[164,89],[165,90],[162,91],[177,92],[179,93],[169,94],[144,95],[170,96],[174,97],[173,98],[201,99],[167,100],[180,101],[181,2],[143,85],[171,102],[168,103],[176,103],[200,104],[175,102],[172,102],[178,105],[182,2],[183,106],[185,107],[186,107],[187,87],[188,108],[189,109],[199,110],[191,111],[192,105],[193,105],[194,107],[195,112],[196,112],[197,107],[198,87],[190,107],[204,2],[184,2],[205,87],[206,113],[217,2],[222,2],[224,114],[223,115],[218,116],[51,2],[267,2],[271,117],[273,118],[272,117],[270,119],[274,120],[234,121],[241,122],[235,123],[236,2],[237,124],[232,2],[239,125],[231,123],[233,2],[230,2],[238,2],[240,126],[269,127],[268,2],[50,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[40,2],[36,2],[37,2],[38,2],[39,2],[8,2],[44,2],[41,2],[42,2],[43,2],[45,2],[9,2],[46,2],[47,2],[48,2],[1,2],[10,2],[49,2],[214,128],[211,2],[210,129],[212,130],[207,2],[208,2],[215,131],[213,132],[209,133],[251,134],[253,135],[229,136],[250,137],[228,138],[252,139]],"semanticDiagnosticsPerFile":[256,254,216,52,247,246,245,248,249,141,244,243,242,140,53,54,55,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,132,133,134,135,136,137,138,139,56,259,255,257,258,261,262,227,260,263,264,265,275,276,277,278,219,220,81,82,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,83,130,99,100,101,131,102,103,104,105,106,107,108,109,110,111,112,113,115,114,116,117,118,119,120,121,122,123,124,125,126,127,128,129,279,280,281,282,283,284,221,285,286,225,266,226,202,203,142,147,150,152,149,154,155,153,146,148,156,157,151,158,159,145,160,161,166,163,164,165,162,177,179,169,144,170,174,173,201,167,180,181,143,171,168,176,200,175,172,178,182,183,185,186,187,188,189,199,191,192,193,194,195,196,197,198,190,204,184,205,206,217,222,224,223,218,51,267,271,273,272,270,274,234,241,235,236,237,232,239,231,233,230,238,240,269,268,50,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,44,41,42,43,45,9,46,47,48,1,10,49,214,211,210,212,207,208,215,213,209,251,253,229,250,228,252]},"version":"4.6.3"}
|
package/dist/lib/functions.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NonNullObject } from '@sapphire/utilities';
|
|
2
|
-
import { Message } from 'discord.js';
|
|
2
|
+
import { BaseCommandInteraction, InteractionReplyOptions, Message, MessageComponentInteraction, MessagePayload } from 'discord.js';
|
|
3
3
|
import type { StringMap, TFunctionKeys, TFunctionResult, TOptions } from 'i18next';
|
|
4
|
-
import type { ChannelTarget, LocalizedMessageOptions, Target } from './types';
|
|
4
|
+
import type { ChannelTarget, LocalizedInteractionReplyOptions, LocalizedMessageOptions, Target } from './types';
|
|
5
5
|
/**
|
|
6
6
|
* Retrieves the language name for a specific target, using {@link InternationalizationHandler.fetchLanguage}.
|
|
7
7
|
* If {@link InternationalizationHandler.fetchLanguage} is not defined or this function returns a nullish value,
|
|
@@ -45,10 +45,10 @@ export declare function resolveKey<TResult extends TFunctionResult = string, TKe
|
|
|
45
45
|
*/
|
|
46
46
|
export declare function sendLocalized<TKeys extends TFunctionKeys = string>(target: ChannelTarget, keys: TKeys | TKeys[]): Promise<Message>;
|
|
47
47
|
/**
|
|
48
|
-
* Send a localized message using
|
|
48
|
+
* Send a localized message using {@link LocalizedMessageOptions}.
|
|
49
49
|
* @since 2.0.0
|
|
50
50
|
* @param target The target to send the message to.
|
|
51
|
-
* @param options
|
|
51
|
+
* @param options A {@link LocalizedMessageOptions} object, requiring at least a `keys` field.
|
|
52
52
|
* @example
|
|
53
53
|
* ```typescript
|
|
54
54
|
* // Using an object to specify the key to send
|
|
@@ -69,7 +69,7 @@ export declare function sendLocalized<TKeys extends TFunctionKeys = string>(targ
|
|
|
69
69
|
*/
|
|
70
70
|
export declare function sendLocalized<TKeys extends TFunctionKeys = string, TInterpolationMap extends NonNullObject = StringMap>(target: ChannelTarget, options: LocalizedMessageOptions<TKeys, TInterpolationMap>): Promise<Message>;
|
|
71
71
|
/**
|
|
72
|
-
* Replies to
|
|
72
|
+
* Replies to a message using the language `keys` from your i18next language setup.
|
|
73
73
|
* @since 2.0.0
|
|
74
74
|
* @param target The message to reply to.
|
|
75
75
|
* @param keys The language keys to be sent.
|
|
@@ -82,10 +82,10 @@ export declare function sendLocalized<TKeys extends TFunctionKeys = string, TInt
|
|
|
82
82
|
*/
|
|
83
83
|
export declare function replyLocalized<TKeys extends TFunctionKeys = string>(target: Message, keys: TKeys | TKeys[]): Promise<Message>;
|
|
84
84
|
/**
|
|
85
|
-
* Replies to
|
|
85
|
+
* Replies to a message using {@link LocalizedMessageOptions}.
|
|
86
86
|
* @since 2.0.0
|
|
87
87
|
* @param target The message to reply to.
|
|
88
|
-
* @param options
|
|
88
|
+
* @param options A {@link LocalizedMessageOptions} object, requiring at least a `keys` field.
|
|
89
89
|
* @example
|
|
90
90
|
* ```typescript
|
|
91
91
|
* // Using an object to specify the key to send
|
|
@@ -105,6 +105,47 @@ export declare function replyLocalized<TKeys extends TFunctionKeys = string>(tar
|
|
|
105
105
|
* ```
|
|
106
106
|
*/
|
|
107
107
|
export declare function replyLocalized<TKeys extends TFunctionKeys = string, TInterpolationMap extends NonNullObject = StringMap>(target: Message, options: LocalizedMessageOptions<TKeys, TInterpolationMap>): Promise<Message>;
|
|
108
|
+
/**
|
|
109
|
+
* Replies to the interaction using the language `keys` from your i18next language setup.
|
|
110
|
+
* @since 2.4.0
|
|
111
|
+
* @param target The interaction to reply to.
|
|
112
|
+
* @param keys The language keys to be sent.
|
|
113
|
+
* @example
|
|
114
|
+
* ```typescript
|
|
115
|
+
* // Using an object to specify the key to send
|
|
116
|
+
* await replyLocalized(interaction, 'commands/ping:loading');
|
|
117
|
+
* // ➡ "Pinging..."
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
export declare function replyLocalized<TKeys extends TFunctionKeys = string>(target: (BaseCommandInteraction | MessageComponentInteraction) & {
|
|
121
|
+
reply: (options: InteractionReplyOptions | MessagePayload | string) => Promise<ReturnType<(BaseCommandInteraction | MessageComponentInteraction)['reply']>>;
|
|
122
|
+
}, keys: TKeys | TKeys[]): Promise<ReturnType<(BaseCommandInteraction | MessageComponentInteraction)['reply']>>;
|
|
123
|
+
/**
|
|
124
|
+
* Replies to the interaction using {@link LocalizedInteractionReplyOptions}.
|
|
125
|
+
* @since 2.4.0
|
|
126
|
+
* @param target The interaction to reply to.
|
|
127
|
+
* @param options A {@link LocalizedInteractionReplyOptions} object, requiring at least a `keys` field.
|
|
128
|
+
* @example
|
|
129
|
+
* ```typescript
|
|
130
|
+
* // Using an object to specify the key to send
|
|
131
|
+
* await replyLocalized(interaction, { keys: 'commands/ping:loading' });
|
|
132
|
+
* // ➡ "Pinging..."
|
|
133
|
+
* ```
|
|
134
|
+
* @example
|
|
135
|
+
* ```typescript
|
|
136
|
+
* // Passing interpolation options into i18next
|
|
137
|
+
* const latency = 42;
|
|
138
|
+
*
|
|
139
|
+
* await replyLocalized(interaction, {
|
|
140
|
+
* keys: 'commands/ping:loading',
|
|
141
|
+
* formatOptions: { latency }
|
|
142
|
+
* });
|
|
143
|
+
* // ➡ "Pinging... current latency is 42ms."
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
export declare function replyLocalized<TKeys extends TFunctionKeys = string, TInterpolationMap extends NonNullObject = StringMap>(target: (BaseCommandInteraction | MessageComponentInteraction) & {
|
|
147
|
+
reply: (options: InteractionReplyOptions | MessagePayload | string) => Promise<ReturnType<(BaseCommandInteraction | MessageComponentInteraction)['reply']>>;
|
|
148
|
+
}, options: LocalizedInteractionReplyOptions<TKeys, TInterpolationMap>): Promise<ReturnType<(BaseCommandInteraction | MessageComponentInteraction)['reply']>>;
|
|
108
149
|
/**
|
|
109
150
|
* Edits a message using the language `keys` from your i18next language setup.
|
|
110
151
|
* @since 2.0.0
|
|
@@ -119,10 +160,10 @@ export declare function replyLocalized<TKeys extends TFunctionKeys = string, TIn
|
|
|
119
160
|
*/
|
|
120
161
|
export declare function editLocalized<TKeys extends TFunctionKeys = string>(target: Message, keys: TKeys | TKeys[]): Promise<Message>;
|
|
121
162
|
/**
|
|
122
|
-
* Edits a message using
|
|
163
|
+
* Edits a message using {@link LocalizedMessageOptions}.
|
|
123
164
|
* @since 2.0.0
|
|
124
165
|
* @param target The message to edit.
|
|
125
|
-
* @param options
|
|
166
|
+
* @param options A {@link LocalizedMessageOptions} object, requiring at least a `keys` field.
|
|
126
167
|
* @example
|
|
127
168
|
* ```typescript
|
|
128
169
|
* // Using an object to specify the key to send
|
|
@@ -143,4 +184,42 @@ export declare function editLocalized<TKeys extends TFunctionKeys = string>(targ
|
|
|
143
184
|
* ```
|
|
144
185
|
*/
|
|
145
186
|
export declare function editLocalized<TKeys extends TFunctionKeys = string, TInterpolationMap extends NonNullObject = StringMap>(target: Message, options: LocalizedMessageOptions<TKeys, TInterpolationMap>): Promise<Message>;
|
|
187
|
+
/**
|
|
188
|
+
* Edits a reply to an interaction, optionally deferred, using the given language.
|
|
189
|
+
* @since 2.4.0
|
|
190
|
+
* @param target The interaction to editReply.
|
|
191
|
+
* @param options The language keys that will resolve to the new interaction content.
|
|
192
|
+
* @example
|
|
193
|
+
* ```typescript
|
|
194
|
+
* // Using a string to specify the key to send
|
|
195
|
+
* await editLocalized(interaction, 'commands/ping:fail');
|
|
196
|
+
* // ➡ "Pong!"
|
|
197
|
+
* ```
|
|
198
|
+
*/
|
|
199
|
+
export declare function editLocalized<TKeys extends TFunctionKeys = string>(target: BaseCommandInteraction | MessageComponentInteraction, keys: TKeys | TKeys[]): Promise<ReturnType<(BaseCommandInteraction | MessageComponentInteraction)['editReply']>>;
|
|
200
|
+
/**
|
|
201
|
+
* Edits a reply to an interaction, optionally deferred, using {@link LocalizedInteractionReplyOptions}.
|
|
202
|
+
* @since 2.4.0
|
|
203
|
+
* @param target The interaction to editReply.
|
|
204
|
+
* @param options A {@link LocalizedInteractionReplyOptions} object, requiring at least a `keys` field.
|
|
205
|
+
* @example
|
|
206
|
+
* ```typescript
|
|
207
|
+
* // Using an object to specify the key to send
|
|
208
|
+
* await editLocalized(interaction, { keys: 'commands/ping:fail' });
|
|
209
|
+
* // ➡ "Pong!"
|
|
210
|
+
* ```
|
|
211
|
+
* @example
|
|
212
|
+
* ```typescript
|
|
213
|
+
* // Passing interpolation options into i18next
|
|
214
|
+
* const latency = 42;
|
|
215
|
+
* const took = 96;
|
|
216
|
+
*
|
|
217
|
+
* await editLocalized(interaction, {
|
|
218
|
+
* keys: 'commands/ping:success',
|
|
219
|
+
* formatOptions: { latency, took }
|
|
220
|
+
* });
|
|
221
|
+
* // ➡ "Pong! Took me 96ms to reply, and my heart took 42ms to beat!"
|
|
222
|
+
* ```
|
|
223
|
+
*/
|
|
224
|
+
export declare function editLocalized<TKeys extends TFunctionKeys = string, TInterpolationMap extends NonNullObject = StringMap>(target: BaseCommandInteraction | MessageComponentInteraction, options: LocalizedInteractionReplyOptions<TKeys, TInterpolationMap>): Promise<ReturnType<(BaseCommandInteraction | MessageComponentInteraction)['editReply']>>;
|
|
146
225
|
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/lib/functions.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/lib/functions.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACN,sBAAsB,EAEtB,uBAAuB,EACvB,OAAO,EACP,2BAA2B,EAC3B,cAAc,EAEd,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnF,OAAO,KAAK,EACX,aAAa,EAEb,gCAAgC,EAChC,uB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EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACpI;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,aAAa,CAAC,KAAK,SAAS,aAAa,GAAG,MAAM,EAAE,iBAAiB,SAAS,aAAa,GAAG,SAAS,EAC5H,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,uBAAuB,CAAC,KAAK,EAAE,iBAAiB,CAAC,GACxD,OAAO,CAAC,OAAO,CAAC,CAAC;AACpB;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,KAAK,SAAS,aAAa,GAAG,MAAM,EACvE,MAAM,EAAE,sBAAsB,GAAG,2BAA2B,EAC5D,IAAI,EAAE,KAAK,GAAG,KAAK,EAAE,GACnB,OAAO,CAAC,UAAU,CAAC,CAAC,sBAAsB,GAAG,2BAA2B,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;AAC5F;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,aAAa,CAAC,KAAK,SAAS,aAAa,GAAG,MAAM,EAAE,iBAAiB,SAAS,aAAa,GAAG,SAAS,EAC5H,MAAM,EAAE,sBAAsB,GAAG,2BAA2B,EAC5D,OAAO,EAAE,gCAAgC,CAAC,KAAK,EAAE,iBAAiB,CAAC,GACjE,OAAO,CAAC,UAAU,CAAC,CAAC,sBAAsB,GAAG,2BAA2B,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC"}
|
package/dist/lib/functions.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.editLocalized = exports.replyLocalized = exports.sendLocalized = exports
|
|
|
4
4
|
const pieces_1 = require("@sapphire/pieces");
|
|
5
5
|
const utilities_1 = require("@sapphire/utilities");
|
|
6
6
|
const discord_js_1 = require("discord.js");
|
|
7
|
+
const node_util_1 = require("node:util");
|
|
7
8
|
/**
|
|
8
9
|
* Retrieves the language name for a specific target, using {@link InternationalizationHandler.fetchLanguage}.
|
|
9
10
|
* If {@link InternationalizationHandler.fetchLanguage} is not defined or this function returns a nullish value,
|
|
@@ -17,20 +18,24 @@ const discord_js_1 = require("discord.js");
|
|
|
17
18
|
* @returns The name of the language key.
|
|
18
19
|
*/
|
|
19
20
|
function fetchLanguage(target) {
|
|
21
|
+
// Handle Interactions:
|
|
22
|
+
if (target instanceof discord_js_1.BaseCommandInteraction || target instanceof discord_js_1.MessageComponentInteraction) {
|
|
23
|
+
return resolveLanguage({ user: target.user, channel: target.channel, guild: target.guild });
|
|
24
|
+
}
|
|
20
25
|
// Handle Message:
|
|
21
26
|
if (target instanceof discord_js_1.Message) {
|
|
22
|
-
return resolveLanguage({
|
|
27
|
+
return resolveLanguage({ user: target.author, channel: target.channel, guild: target.guild });
|
|
23
28
|
}
|
|
24
29
|
// Handle Guild:
|
|
25
30
|
if (target instanceof discord_js_1.Guild) {
|
|
26
|
-
return resolveLanguage({
|
|
31
|
+
return resolveLanguage({ user: null, channel: null, guild: target });
|
|
27
32
|
}
|
|
28
33
|
// Handle DMChannel:
|
|
29
34
|
if (target.type === 'DM') {
|
|
30
|
-
return resolveLanguage({
|
|
35
|
+
return resolveLanguage({ user: null, channel: target, guild: null });
|
|
31
36
|
}
|
|
32
37
|
// Handle any other channel:
|
|
33
|
-
return resolveLanguage({
|
|
38
|
+
return resolveLanguage({ user: null, channel: target, guild: target.guild });
|
|
34
39
|
}
|
|
35
40
|
exports.fetchLanguage = fetchLanguage;
|
|
36
41
|
/**
|
|
@@ -65,6 +70,9 @@ async function replyLocalized(target, options) {
|
|
|
65
70
|
}
|
|
66
71
|
exports.replyLocalized = replyLocalized;
|
|
67
72
|
async function editLocalized(target, options) {
|
|
73
|
+
if (target instanceof discord_js_1.BaseCommandInteraction || target instanceof discord_js_1.MessageComponentInteraction) {
|
|
74
|
+
return target.editReply(await resolveOverloads(target, options));
|
|
75
|
+
}
|
|
68
76
|
return target.edit(await resolveOverloads(target, options));
|
|
69
77
|
}
|
|
70
78
|
exports.editLocalized = editLocalized;
|
|
@@ -72,6 +80,14 @@ exports.editLocalized = editLocalized;
|
|
|
72
80
|
* @internal
|
|
73
81
|
*/
|
|
74
82
|
async function resolveLanguage(context) {
|
|
83
|
+
Object.defineProperty(context, 'author', {
|
|
84
|
+
get: (0, node_util_1.deprecate)(() => {
|
|
85
|
+
return context.user;
|
|
86
|
+
}, "InternationalizationContext's `author` property is deprecated and will be removed in the next major version. Please use `InternationalizationContext.user` instead.", 'DeprecationWarning'),
|
|
87
|
+
set: (0, node_util_1.deprecate)((val) => {
|
|
88
|
+
context.user = val;
|
|
89
|
+
}, "InternationalizationContext's `author` property is deprecated and will be removed in the next major version. Please use `InternationalizationContext.user` instead.", 'DeprecationWarning')
|
|
90
|
+
});
|
|
75
91
|
const lang = await pieces_1.container.i18n.fetchLanguage(context);
|
|
76
92
|
return lang ?? context.guild?.preferredLocale ?? pieces_1.container.i18n.options.defaultName ?? 'en-US';
|
|
77
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../src/lib/functions.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,mDAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../src/lib/functions.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,mDAA8D;AAC9D,2CAQoB;AAEpB,yCAAsC;AAUtC;;;;;;;;;;;GAWG;AACH,SAAgB,aAAa,CAAC,MAAc;IAC3C,uBAAuB;IACvB,IAAI,MAAM,YAAY,mCAAsB,IAAI,MAAM,YAAY,wCAA2B,EAAE;QAC9F,OAAO,eAAe,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;KAC5F;IAED,kBAAkB;IAClB,IAAI,MAAM,YAAY,oBAAO,EAAE;Q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AChD,IAAI,MAAM,YAAY,oBAAO;QAAE,OAAO,MAAM,CAAC,OAAO,CAAC;IACrD,IAAI,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,MAAM,CAAC;IACnC,MAAM,IAAI,SAAS,CAAC,kBAAkB,MAAM,CAAC,IAAI,2BAA2B,CAAC,CAAC;AAC/E,CAAC;AAED;;GAEG;AACH,KAAK,UAAU,gBAAgB,CAC9B,MAAc,EACd,OAAyI;IAEzI,IAAI,IAAA,oBAAQ,EAAC,OAAO,CAAC,EAAE;QACtB,MAAM,MAAM,GAAG,OAAyH,CAAC;QACzI,OAAO,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;KAC5F;IAED,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;AACvD,CAAC"}
|
package/dist/lib/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Awaitable, NonNullObject } from '@sapphire/utilities';
|
|
2
2
|
import type { WatchOptions } from 'chokidar';
|
|
3
|
-
import type { Guild, Message, MessageOptions, StageChannel, StoreChannel, User, VoiceChannel } from 'discord.js';
|
|
3
|
+
import type { BaseCommandInteraction, Guild, InteractionReplyOptions, Message, MessageComponentInteraction, MessageOptions, StageChannel, StoreChannel, User, VoiceChannel } from 'discord.js';
|
|
4
4
|
import type { InitOptions, StringMap, TFunctionKeys, TOptions } from 'i18next';
|
|
5
5
|
import type { i18nextFsBackend } from 'i18next-fs-backend';
|
|
6
6
|
/**
|
|
@@ -105,9 +105,17 @@ export declare type DiscordChannel = TextBasedDiscordChannel | StoreChannel | St
|
|
|
105
105
|
* This context enables implementation of per-guild, per-channel, and per-user localization.
|
|
106
106
|
*/
|
|
107
107
|
export interface InternationalizationContext {
|
|
108
|
+
/** The {@link Guild} object to fetch the preferred language for, or `null` if the language is to be fetched in a DM. */
|
|
108
109
|
guild: Guild | null;
|
|
110
|
+
/** The {@link DiscordChannel} object to fetch the preferred language for. */
|
|
109
111
|
channel: DiscordChannel | null;
|
|
110
|
-
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated Use {@link InternationalizationContext.user} instead; this will be removed in the next major version.
|
|
114
|
+
* The user to fetch the preferred language for.
|
|
115
|
+
*/
|
|
116
|
+
author?: User | null;
|
|
117
|
+
/** The user to fetch the preferred language for. */
|
|
118
|
+
user: User | null;
|
|
111
119
|
}
|
|
112
120
|
export interface InternationalizationClientOptions {
|
|
113
121
|
i18n?: InternationalizationOptions;
|
|
@@ -116,12 +124,18 @@ export interface I18nextFormatters {
|
|
|
116
124
|
name: string;
|
|
117
125
|
format(value: any, lng: string | undefined, options: any): string;
|
|
118
126
|
}
|
|
127
|
+
export interface LocalizedInteractionReplyOptions<TKeys extends TFunctionKeys = string, TInterpolationMap extends NonNullObject = StringMap> extends PartialLocalizedInteractionReplyOptions<TInterpolationMap> {
|
|
128
|
+
keys: TKeys | TKeys[];
|
|
129
|
+
}
|
|
119
130
|
export interface LocalizedMessageOptions<TKeys extends TFunctionKeys = string, TInterpolationMap extends NonNullObject = StringMap> extends PartialLocalizedMessageOptions<TInterpolationMap> {
|
|
120
131
|
keys: TKeys | TKeys[];
|
|
121
132
|
}
|
|
133
|
+
export interface PartialLocalizedInteractionReplyOptions<TInterpolationMap extends NonNullObject = StringMap> extends Omit<InteractionReplyOptions, 'content'> {
|
|
134
|
+
formatOptions?: TOptions<TInterpolationMap>;
|
|
135
|
+
}
|
|
122
136
|
export interface PartialLocalizedMessageOptions<TInterpolationMap extends NonNullObject = StringMap> extends Omit<MessageOptions, 'content'> {
|
|
123
137
|
formatOptions?: TOptions<TInterpolationMap>;
|
|
124
138
|
}
|
|
125
139
|
export declare type ChannelTarget = Message | DiscordChannel;
|
|
126
|
-
export declare type Target = ChannelTarget | Guild;
|
|
140
|
+
export declare type Target = BaseCommandInteraction | ChannelTarget | Guild | MessageComponentInteraction;
|
|
127
141
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EACX,sBAAsB,EACtB,KAAK,EACL,uBAAuB,EACvB,OAAO,EACP,2BAA2B,EAC3B,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;;GAGG;AACH,MAAM,WAAW,UAAU;IAC1B;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE9B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;;;GAIG;AACH,oBAAY,cAAc,CAAC,CAAC,SAAS,WAAW,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE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-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
2
|
+
"name": "@sapphire/plugin-i18next",
|
|
3
|
+
"version": "2.4.0",
|
|
4
|
+
"description": "Plugin for @sapphire/framework to support i18next.",
|
|
5
|
+
"author": "@sapphire",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"module": "dist/index.mjs",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"require": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./register": {
|
|
17
|
+
"import": "./register.mjs",
|
|
18
|
+
"require": "./register.js",
|
|
19
|
+
"types": "./register.d.ts"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"./dist/register.js",
|
|
24
|
+
"./dist/register.mjs",
|
|
25
|
+
"./register.js",
|
|
26
|
+
"./register.mjs"
|
|
27
|
+
],
|
|
28
|
+
"homepage": "https://github.com/sapphiredev/plugins/tree/main/packages/i18next",
|
|
29
|
+
"scripts": {
|
|
30
|
+
"test": "jest",
|
|
31
|
+
"lint": "eslint src tests --ext ts --fix",
|
|
32
|
+
"build": "tsc -b src && yarn esm:register && yarn esm:default",
|
|
33
|
+
"esm:register": "gen-esm-wrapper dist/register.js dist/register.mjs",
|
|
34
|
+
"esm:default": "gen-esm-wrapper dist/index.js dist/index.mjs",
|
|
35
|
+
"prepublish": "yarn build",
|
|
36
|
+
"bump": "cliff-jumper",
|
|
37
|
+
"check-update": "cliff-jumper --dry-run"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@sapphire/utilities": "^3.6.2",
|
|
41
|
+
"@types/i18next-fs-backend": "^1.1.2",
|
|
42
|
+
"chokidar": "^3.5.3",
|
|
43
|
+
"i18next": "^21.6.16",
|
|
44
|
+
"i18next-fs-backend": "^1.1.4",
|
|
45
|
+
"tslib": "^2.3.1"
|
|
46
|
+
},
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/sapphiredev/plugins.git",
|
|
50
|
+
"directory": "packages/i18next"
|
|
51
|
+
},
|
|
52
|
+
"files": [
|
|
53
|
+
"dist",
|
|
54
|
+
"!dist/*.tsbuildinfo",
|
|
55
|
+
"register.*"
|
|
56
|
+
],
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=v14.0.0",
|
|
59
|
+
"npm": ">=7.0.0"
|
|
60
|
+
},
|
|
61
|
+
"keywords": [
|
|
62
|
+
"sapphiredev",
|
|
63
|
+
"plugin",
|
|
64
|
+
"bot",
|
|
65
|
+
"typescript",
|
|
66
|
+
"ts",
|
|
67
|
+
"yarn",
|
|
68
|
+
"discord",
|
|
69
|
+
"sapphire",
|
|
70
|
+
"i18next",
|
|
71
|
+
"i18n"
|
|
72
|
+
],
|
|
73
|
+
"bugs": {
|
|
74
|
+
"url": "https://github.com/sapphiredev/plugins/issues"
|
|
75
|
+
},
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"access": "public"
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"gen-esm-wrapper": "^1.1.3",
|
|
81
|
+
"typescript": "^4.6.3"
|
|
82
|
+
}
|
|
83
|
+
}
|
package/src/register.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { container, Plugin, preGenericsInitialization, preLogin, postLogin, SapphireClient } from '@sapphire/framework';
|
|
2
|
+
import { watch } from 'chokidar';
|
|
3
|
+
import type { ClientOptions } from 'discord.js';
|
|
4
|
+
|
|
5
|
+
import { InternationalizationClientOptions, InternationalizationHandler } from './index';
|
|
6
|
+
|
|
7
|
+
export class I18nextPlugin extends Plugin {
|
|
8
|
+
public static [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {
|
|
9
|
+
container.i18n = new InternationalizationHandler(options.i18n);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public static async [preLogin](this: SapphireClient): Promise<void> {
|
|
13
|
+
await container.i18n.init();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
public static [postLogin](this: SapphireClient): void {
|
|
17
|
+
if (this.options.i18n?.hmr?.enabled) {
|
|
18
|
+
container.logger.info('[i18next-Plugin]: HMR enabled. Watching for languages changes.');
|
|
19
|
+
const hmr = watch(container.i18n.languagesDirectory, this.options.i18n.hmr.options);
|
|
20
|
+
|
|
21
|
+
for (const event of ['change', 'unlink']) hmr.on(event, () => container.i18n.reloadResources());
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
SapphireClient.plugins.registerPostInitializationHook(I18nextPlugin[preGenericsInitialization], 'I18next-PreGenericsInitialization');
|
|
27
|
+
SapphireClient.plugins.registerPreLoginHook(I18nextPlugin[preLogin], 'I18next-PreLogin');
|
|
28
|
+
SapphireClient.plugins.registerPostLoginHook(I18nextPlugin[postLogin], 'I18next-PostLogin');
|
|
29
|
+
|
|
30
|
+
declare module '@sapphire/pieces' {
|
|
31
|
+
interface Container {
|
|
32
|
+
i18n: InternationalizationHandler;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare module 'discord.js' {
|
|
37
|
+
export interface ClientOptions extends InternationalizationClientOptions {}
|
|
38
|
+
}
|
package/LICENSE.md
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright © `2020` `The Sapphire Community and its contributors`
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person
|
|
6
|
-
obtaining a copy of this software and associated documentation
|
|
7
|
-
files (the “Software”), to deal in the Software without
|
|
8
|
-
restriction, including without limitation the rights to use,
|
|
9
|
-
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the
|
|
11
|
-
Software is furnished to do so, subject to the following
|
|
12
|
-
conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be
|
|
15
|
-
included in all copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
|
|
18
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
19
|
-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
20
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
21
|
-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
22
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
23
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
24
|
-
OTHER DEALINGS IN THE SOFTWARE.
|