The macro set_translator! was missing the conversion from module_path to domain.
Most people probably call set_translator! from the main module, so they are the same and nobody noticed. But I'm calling it from a submodule (actually a generated file by build.rs) so the stored translator would never be used.
The macro
set_translator!
was missing the conversion frommodule_path
todomain
.Most people probably call
set_translator!
from themain
module, so they are the same and nobody noticed. But I'm calling it from a submodule (actually a generated file bybuild.rs
) so the stored translator would never be used.