We want all our static resouces(HTML, CSS, JS) to be static pages(rather than being rendered at server), but encountered problems. In order to support multi languages, we have to embed the contexts of different languages in our code. As a result, in development, we have to compile the source files to many copies on every file changes. As the project becomes larger and larger, the compilation could be quite slow, and projects hard to manage.
Is there a best practice of supporting multi languages in single page applications?