i18n format issue
Hello guys,
I just updated to the newest version of i18n plugin.
My format function is now throwing an error I cannot get much context out of:
My code
The error occurrs on this line
The line right under it without options is not throwing an error.
Has someone an idea what's the issue is about and how to fix it?
2 Replies
container.i18n.format no longer exclusively returns a string because it can also return an object. Adjust the return type of your own wrapper function... Or don't use a wrapper function at all and just import and use resolveKey and implement fetchLamguage because that whole wrapper function becomes pointless if you do as you can already get the guild language in fetchLanguage part of the breaking changes and "also see their upgrading guide"
Ahh that was the point! Got you, thanks for the hint 😄