Skip to content

Commit

Permalink
fix: add translation to the context
Browse files Browse the repository at this point in the history
  • Loading branch information
evermake committed Mar 31, 2024
1 parent 7cd1c11 commit 81bc03b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/bot/plugins/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const install: InstallFn<TranslationsFlavor & DomainFlavor> = (bot) => {
translation ??= translations[ctx.from.language_code as Language]
}
translation ??= translations.en
ctx.t = translation
}
ctx.updateLanguage()

Expand Down

0 comments on commit 81bc03b

Please sign in to comment.