How do I use translation module in vibe.d?
Jack
jckj33 at gmail.com
Tue Oct 13 17:02:54 UTC 2020
On Tuesday, 13 October 2020 at 08:07:17 UTC, aberba wrote:
> On Friday, 9 October 2020 at 21:07:28 UTC, jack wrote:
>> Documentation[1] tells to use
>> @translationModule!TranslationContext on class, like this:
>>
>>> @translationModule!TranslationContext
>>> class WebInterface {
>>> ...
>>
>> but it return the error:
>>
>>> Error: template instance
>>> translationModule!(TranslationContext) does not match template
>>> declaration translationModule(string FILENAME)
>>
>> 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
>
> https://www.github.com/vibe-d/vibe.d/tree/master/examples%2Fweb-i18n
>
> There's also an example here
My dub.json file and folder structure is exactly this one, as the
tutorial told to do yet I get the compilation error. I guess the
library was updated but the documentation didn't
More information about the Digitalmars-d-learn
mailing list