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
- Host: GitHub
- URL: https://github.com/lullaby6/language-redirect
- Owner: lullaby6
- License: mit
- Created: 2024-09-04T18:14:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-28T21:25:43.000Z (11 months ago)
- Last Synced: 2025-01-28T22:26:39.429Z (11 months ago)
- Topics: java-script, javascript, javascript-lib, js, js-lib, js-library
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
## 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'
});
```