i18n not part of sapphire container
Hello guys,
I just updated my i18n plugin to the latest version (5.1.0) and noticed that since version 5.0.5 i18n seems to not be a piece of the container anymore.
I try to access the piece with
container.i18n
but my IDE tells me that roperty i18n does not exist on type Container
Looking into the package made me curious cause in the register.d.ts file the piece is beeing registered and I import the register file in my client.
What am I doing wrong?2 Replies
it is still part of it. Make sure you update all your dependencies, and if you're using TS 5.2 and @sapphire/ts-config make sure you use @sapphire/ts-config v5.
https://github.com/sapphiredev/plugins/pull/471
GitHub
fix(i18next): Fix augments by Swiizyy · Pull Request #471 · sapphir...
Repair of module de Declarations that do not work after the last update.
That seems to work, thank you!