|
5 anni fa | |
---|---|---|
.. | ||
assets | 5 anni fa | |
lang | 5 anni fa | |
README.md | 5 anni fa | |
index.html | 5 anni fa |
This has an example that relies on Bengali (bn) as the default language and English (en) being the secondary switchable language. The default text is in bn, so it doesn't load it when loading the page. When switched to English, it switches like normal. It happens automatically through the code and gives optimal performance.
Note: Needs a local server for this to work.
To run a simple local server without any complicated server setup, cd
into this directory and run a simple server instance:
sudo npm install -g simple-server # run once to install, then later everytime...
sudo simple-server . 4400
Then visit http://localhost:4400. Press ctrl+C when you want to stop the server.