@commandkit/i18n 0.1.2-dev.20250407135247 → 0.1.2-dev.20250411164423
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,8 +80,8 @@ export const chatInput: SlashCommand = async (ctx) => {
|
|
|
80
80
|
// you can also pass a discord.js locale enum to use custom locale
|
|
81
81
|
// ctx.locale("fr") // uses french locale
|
|
82
82
|
const { t, i18n } = ctx.locale()
|
|
83
|
-
//
|
|
84
|
-
//
|
|
83
|
+
// | |__ i18next instance
|
|
84
|
+
// |_____ TFunction
|
|
85
85
|
|
|
86
86
|
ctx.interaction.reply({
|
|
87
87
|
content: t("response", { latency: client.ping }),
|
|
@@ -105,4 +105,4 @@ export async function run({ interaction }) {
|
|
|
105
105
|
}
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
This function is identical to the one in the context and it can also infer the locale automatically.
|
|
108
|
+
This function is identical to the one in the context and it can also infer the locale automatically.
|
package/package.json
CHANGED