The path shown by Schleichardt was used in play-authenticate to select letter templates in different languages, and now it has changed to work with reflections on the controller, so this may be interesting for you. In any case, he intended to support the standard features of the templates (so that each mail was personalized before sending)
For static information pages, you can simply save the code for each language with a suffix, i.e. impressum_en.html , impressum_de.html in the file system and use a simple controller that will find the file with the appropriate suffix and return its contents exactly as it is ... all you need to return Ok (fileContent) and set Content -Type manually to text/html .
Another option does a similar thing, but saves it in the database, so you can create a simple server and edit it in a browser.
If you still need to replace some elements, you can do this with some ###MARKER### in code operations + simple String or with client-side JavaScript.
source share