Practical-Multilingualism is a small, dependency-free example that demonstrates client-side multilingual (i18n) support using plain Vanilla JavaScript and a JSON-based translations file. The project shows how to switch languages on a static page, cache translations in localStorage, and quickly add new languages.
Key features
- JSON-based translations (translations.json)
- Local caching in localStorage using the translations file size
- Language switcher via select element and language links
- Simple API: setLanguage, populateLanguages, refreshTranslations
Quick start
- Serve the project folder (example on Windows with Ampps): http://localhost/Practical-Multilingualism/
- Open index.html in your browser.
- Inspect or edit translations.json to add languages.
Documentation
- English documentation: readme_en.md
- Türkçe dokümantasyon: readme_tr.md
License: MIT