you should add a testcase for this case (it may be easier and more readable to use an integration test for this in which you render a template using a custom translator using ``domain:key`` as translation to see easily if the right domain was applied rather than comparing the AST before and after the rendering)