Say goodbye to duplicate html files
vavilon.js makes i18n for static sites easy to setup and maintain
Reasons to consider vavilon.js
vavilon.js weighs only 2.4 KB — less than 1000 bytes gzipped!
Edit translations without editing the website source code
Translate string by string while keeping the site functional
Free & open-source
Use and change vavilon.js in whichever way you desire
Step 2. IDentify your strings
Think of a unique ID for every string and add it using
Step 3. Translate your strings
Create a JSON file with an object where keys are the string IDs and the values are the translated strings.
Step 4. Connect the dictionaries
Just before you load the vavilon.js, insert the links to your dictionaries and specify their
language. Don't forget about
Step 5. Add the switch
The automatic language switching is already up and running! If you want your user to be able
to switch languages, use the
Right now there are not so many examples of websites using vavilon.js. One of the best and the most official examples would be this website. You can explore its source code on GitHub, where it is available under the MIT license.