Skip to content

Commit cd19172

Browse files
authored
docs: update i18n example
1 parent 69991de commit cd19172

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/i18n/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export const chatInput: SlashCommand = async (ctx) => {
8080
// you can also pass a discord.js locale enum to use custom locale
8181
// ctx.locale("fr") // uses french locale
8282
const { t, i18n } = ctx.locale()
83-
// ^ TFunction
84-
// ^ i18next instance
83+
// | |__ i18next instance
84+
// |_____ TFunction
8585

8686
ctx.interaction.reply({
8787
content: t("response", { latency: client.ping }),
@@ -105,4 +105,4 @@ export async function run({ interaction }) {
105105
}
106106
```
107107

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.

0 commit comments

Comments
 (0)