Compile translated

There's an implementation of the compilation of translated strings.
I made an e2e test, but couldn't get unit tests to work.

What do you suggest is a good way to do this?
Any concerns about performance?