Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lullaby6/language-redirect.js

JavasScript Library - Do languages redirects
https://github.com/lullaby6/language-redirect.js

java-script javascript javascript-lib js js-lib js-library

Last synced: about 1 month ago
JSON representation

JavasScript Library - Do languages redirects

Awesome Lists containing this project

README

        

# language-redirect.js

A lightweight and easy-to-use js library to redirection for support differents languages

## Installation

### CDN

Include this tag in your html ```head```

```html

```

or Download

## Usage

### in HTML

In your script tag you can use the ```data-language-redirect``` attribute for config the redirects easly

```html

```

### in JavaScript

Also you can use the ```languageRedirect``` function to config the redirects via JavaScript

```js
languageRedirect({
es: '/es/index.html'
});
```