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

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: 5 months 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

```

#### Download

Download and include the downloaded file in your project:

```html

```

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