Closed peterdesmet closed 9 years ago
I would stay with a single html file to prevent separate ones from getting out of sync. I would define all labels at one place, and insert them in the DOM using jQuery. (as proposed here).
Selection of the language could be done with a query string, or simply with buttons (where "english" would be active by default)
Still to do:
Is all implemented f0596cfdd115302b47aebc6f5b8ba18a9521b015
The visualization should be available in Dutch and French, as well as English. The easiest way to do this is to create another
index.html
. A more scalable way to do this however, is to define the language via a query-stringlang=en
and add all text conditionally with if functions. You could also<span class="lang-en">
all text and only show the correct span with jQuery.