Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lablnet/javascript-language-selector

Create your frontend website in multiple languages by using this class.
https://github.com/lablnet/javascript-language-selector

class free frontend javascript js language mit plugin selector websitem

Last synced: about 1 month ago
JSON representation

Create your frontend website in multiple languages by using this class.

Awesome Lists containing this project

README

        

# Javascript Langauge Selector

Create your frontend website in multiple languages by using this class.

### Features
- Simple but yet powerful.
- Enable RTL automatically.
- Super fast.
- Much more...

### Demo
- [https://lablnet.github.io/Javascript-Language-Selector/](https://lablnet.github.io/Javascript-Language-Selector/)

### Requirement
- Jquery

### How to use?

- Just download this code or clone
- ```
git clone https://github.com/Lablnet/Javascript-Language-Selector.git```
- Include the `js` file in `head` section of your page
- ```html

- Make sure jquery is included in your page

- Load the language file which contain json data
- ```html

```

- The `locale.js` file contains language strings something like
- ```js lang = {
'en': {
':heading': 'Javascript Language Selector',
':h2': 'This is the sub heading',
':first:p': "Hey! this is the javascript language selector",
':english': 'English',
':urdu': 'Urdu',
':portuguese': 'Portuguese',
':choose': 'Choose the language',
},
}
- Now write your markup/html
- ```html

:heading


:h2


:first:p


- Parse language
- ```js
var l = new LanguageSelector();
l.parse();
- That's all.

### LICENSE
- MIT

### Author
[Muhammad Umer Farooq](https://lablnet.github.io/profile/)