How to translate a game on HTML5?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tautologias345

I have a CSV translation, the game works on Windows and Android. But I want to have 1 HTML5 page for each different language. Is it with the lang attribute on the html tag of the super-page that contains the iframe of the game. Is it with the lang attribute on the iframe tag? How can I do/make internationalization on HTML5?

:bust_in_silhouette: Reply From: micorej328

Use JSP and Spring’s Message tag lib (or any other templating language that supports i18n) For each locale you would copy all the HTML pages in a locale directory and then dispatch to the directory based on the locale.