On Friday, 9 October 2020 at 21:07:28 UTC, jack wrote:
Documentation[1] tells to use @translationModule!TranslationContext on class, like this:

[...]

but it return the error:

 [...]

it seems that construtor was removed[2] but I can't find the replacement anywhere. Could someone help with that?

[1]: see "location" section: https://vibed.org/docs#Localization
[2]: https://vibed.org/api/search?q=translationModule


Did you do this?

Using GNU gettext compatible .po translation files, it's possible to localize Diet templates at compile time. This just requires putting the translation files with the naming scheme <name>.<language>.po into a path that is registered in the "stringImportPaths" field of the dub.json. <language> must be a language identifier of the form en_US.

Reply via email to