I have translated some custom error message in a schema, it just works, no problem here.
But to do that I have imported import MyappWeb.Gettext
into the schema which is inside Myapp
module. Importing something from MyappWeb into Myapp
makes me feel that I am doing something wrong. More generally gettext
is not in Myapp
so should I even internationalize messages inside the schema?
Is there another way to do the translation importing gettext
from MyappWeb
or any other place into Myapp
? Or should I try report the error somehow that doesn’t need to be internationalized inside schema? how?
Or maybe it is just OK to do the internationalization inside a schema.