[Translation] added LoggableTranslator.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #3015, #2435
| License       | MIT
Why is it in a compiler pass? Why not doing that in the `FrameworkExtension` class directly?