Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Dec 31, 2023
1 parent 6dc1461 commit 3912e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function middleware<C extends Context = Context>(
async function setLocale(locale: LocaleId): Promise<void> {
if (!useSession) {
throw new Error(
"You are calling `ctx.i18n.setLocale()` without setting `useSession` to `true` \
"You are calling `ctx.i18n.setLocale()` without setting `useSession` to `true` \
in the configuration. It doesn't make sense because you cannot set a locale in \
the session that way. When you call `ctx.i18n.setLocale()`, the bot tries to \
store the user locale in the session storage. But since you don't have session \
Expand Down

0 comments on commit 3912e74

Please sign in to comment.