{"id":25893392,"url":"https://github.com/lullaby6/language-redirect","last_synced_at":"2025-10-19T02:23:02.666Z","repository":{"id":255554447,"uuid":"852391301","full_name":"lullaby6/language-redirect","owner":"lullaby6","description":"JavasScript Library - Do languages redirects","archived":false,"fork":false,"pushed_at":"2025-01-28T21:25:43.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T22:26:39.429Z","etag":null,"topics":["java-script","javascript","javascript-lib","js","js-lib","js-library"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lullaby6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-04T18:14:52.000Z","updated_at":"2025-01-28T21:25:47.000Z","dependencies_parsed_at":"2024-11-25T18:19:41.985Z","dependency_job_id":"2a1a7dda-eec7-4df0-8f68-2ed29a99ff82","html_url":"https://github.com/lullaby6/language-redirect","commit_stats":null,"previous_names":["lullaby6/language-redirect.js","lullaby6/language-redirect"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lullaby6%2Flanguage-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lullaby6%2Flanguage-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lullaby6%2Flanguage-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lullaby6%2Flanguage-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lullaby6","download_url":"https://codeload.github.com/lullaby6/language-redirect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241576606,"owners_count":19984935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java-script","javascript","javascript-lib","js","js-lib","js-library"],"created_at":"2025-03-02T21:33:33.389Z","updated_at":"2025-10-19T02:23:02.660Z","avatar_url":"https://github.com/lullaby6.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Language Redirect\n\nA lightweight and easy-to-use js library to redirection for support differents languages.\n\n## Installation\n\n#### CDN\n\n```html\n\u003cscript src='https://cdn.jsdelivr.net/gh/lullaby6/language-redirect/language-redirect.js'\u003e\u003c/script\u003e\n```\n\n### Download\n\n\u003ca href=\"https://cdn.jsdelivr.net/gh/lullaby6/language-redirect/language-redirect.js\" target=\"_blank\" download\u003eDownload\u003c/a\u003e\n\n## Usage\n\n#### in HTML\n\nIn your script tag you can use the `data-language-redirect` attribute for config the redirects easly:\n\n```html\n\u003cscript\n    src='https://cdn.jsdelivr.net/gh/lullaby6/language-redirect/language-redirect.js'\n    data-language-redirect='{ \"es\": \"/es/about.html\" }'\n\u003e\u003c/script\u003e\n```\n\n#### in JavaScript\n\nAlso you can use the `languageRedirect` function to config the redirects via JavaScript:\n\n```js\nlanguageRedirect({\n    es: '/es/index.html'\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flullaby6%2Flanguage-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flullaby6%2Flanguage-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flullaby6%2Flanguage-redirect/lists"}