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

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

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

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

Last synced: 2 months ago
JSON representation

JavasScript Library - Do languages redirects

Awesome Lists containing this project

README

          

# Language Redirect

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

## Installation

#### CDN

```html

```

### Download

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'
});
```