izyk-grzegorz-3ib-language-page-loader

1.0.0 • Public • Published

#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);

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i izyk-grzegorz-3ib-language-page-loader

      Weekly Downloads

      1

      Version

      1.0.0

      License

      ISC

      Last publish

      Collaborators

      • grzegorzizyk