2 releases
0.1.1 | Jul 29, 2020 |
---|---|
0.1.0 | Jul 16, 2020 |
#24 in #multi
22KB
317 lines
Multi Lingual
Experimenting multi lingual support on a website.
How to use it
- Clone or download this app from github.
- Edit Settings.toml file to update ip address
- Edit dictionaries.csv file to update required entries into it.
a. First row is used for conveying Language Names with respective codes in brackets. Example: For english language => English(en), For tamil language, Tamil(ta_en), and so on. Note: ta_en_ indicates tamil language using English font/glyph.
b. Second row onwards entries are made for Key-words and Language-words.
c. Keys are used in html template pages. Example: in first_page.hbs file, these keys are used as {{key-word}} - Copy following files/folder into a separate folder, say "~/projects":
a. target/release/multilingual file.
b. Settings.toml file
c. resources folder
d. multilingual.service file (to configure this server as a service)
e. multilingual.eastgate.in file (in case of planning to run multiple servers on the same machine, use this nginx configuration) - Edit multilingual.service for ip address. Follow instructions in it to run it as a service.
- Edit multilingual.eastgate.in for ip address. Follow instructions in it to configure nginx reverse proxy server.
- Assuming an entry in Settings.toml file for ip_address as 127.0.0.1:3020, open up a web browser and enter url as http://localhost:3020. Browser shows first page of the multilingual web server. It confirms server is running.
Demo
Click here to view demo.
License
MIT
Dependencies
~23–35MB
~679K SLoC