izyk-grzegorz-3ib-language-page-loader
v1.0.0
Published
This simple script load page with language that user sets in his browser.
Downloads
2
Readme
#Language version loader
##instalation
Just write this command below to your terminal
npm install izyk-grzegorz-3ib-language-page-loader
##How to use ?
At first you need to create directory with directories described with shortcuts of used languages. This directories need to contains .html files.
{appDir}
|__{staticDir}
| |__ en
| | |__{index.html}
| |__ fr
| | |__{index.html}
| |__ pl
| | |__{index.html}
|
|__ server.js
Now open your node.js file and make a simple initialization like this:
var Lang = require('izyk-grzegorz-3ib-language-page-loader');
All what we need to make our script works is use function setOptions.
Lang.setOptions(nameOStaticDirectory, nameOfFile);