Skip to content

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.

License

Notifications You must be signed in to change notification settings

aliyilmaz/Practical-Multilingualism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Practical-Multilingualism

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

  1. Serve the project folder (example on Windows with Ampps): http://localhost/Practical-Multilingualism/
  2. Open index.html in your browser.
  3. Inspect or edit translations.json to add languages.

Documentation

License: MIT

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages