{"id":18798509,"url":"https://github.com/uiwebkit/localize-react","last_synced_at":"2026-05-04T21:34:20.751Z","repository":{"id":143122827,"uuid":"437968668","full_name":"uiwebkit/localize-react","owner":"uiwebkit","description":"Uni Localization example for React","archived":false,"fork":false,"pushed_at":"2022-02-07T11:52:35.000Z","size":528,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-21T19:18:45.822Z","etag":null,"topics":["custom-elements","html","localization","localize","react","reactjs","translate","translation","uiwebkit","uni-localization","web","web-components","widget"],"latest_commit_sha":null,"homepage":"https://uiwebkit.com/wgt/loc/2","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/uiwebkit.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":"2021-12-13T17:44:11.000Z","updated_at":"2023-02-16T13:47:11.000Z","dependencies_parsed_at":"2023-05-18T04:31:48.268Z","dependency_job_id":null,"html_url":"https://github.com/uiwebkit/localize-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uiwebkit/localize-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uiwebkit","download_url":"https://codeload.github.com/uiwebkit/localize-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize-react/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260234123,"owners_count":22978939,"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":["custom-elements","html","localization","localize","react","reactjs","translate","translation","uiwebkit","uni-localization","web","web-components","widget"],"created_at":"2024-11-07T22:12:15.365Z","updated_at":"2026-05-04T21:34:15.685Z","avatar_url":"https://github.com/uiwebkit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Uni Localization example for React\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app)\n\nCheck out demo [here](https://uiwebkit.github.io/localize-react/)\n\nCheck out our docs [here](https://uiwebkit.com/wgt/loc/2)\n\n### Add to index.html\n\n```html\n\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@uiwebkit/flag@0.1.1/dist/flag/flag.esm.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@uiwebkit/udk@2.0.0-13/dist/udk.esm.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@uiwebkit/mat@2.0.0-2/dist/mat.esm.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@uiwebkit/loc@2.0.0-6/dist/loc/loc.esm.js\"\u003e\u003c/script\u003e\n```\n\n#### Place Uni Language Menu into the header of your web app. Specify the path to the language list JSON file (ex. lang-menu.json) or backend API endpoint\n\n```html\n\u003cuni-router shadow\u003e\u003c/uni-router\u003e\n\u003cuni-lang-menu-shadow mini round routing url=\"lang-menu.json\"\u003e\u003c/uni-lang-menu-shadow\u003e\n```\n\n#### Wrap your content with Uni Translate globally (for more convenience)\n\n```html\n\u003cuni-translate\u003e\u003cContentComponent/\u003e\u003c/uni-translate\u003e\n```\n\n#### or wrap your text content with Uni Translate locally (for better performance)\n\n```html\n\u003cuni-translate\u003elocalized content\u003c/uni-translate\u003e\n```\n\n#### localize partially\n\n```html\n\u003cuni-translate\u003etext and (( partially localized ))\u003c/uni-translate\u003e\n```\n\n#### localize attributes\n\n```html\n\u003cuni-translate\u003e\n  \u003ca href=\"https://your_domain/(( localized ))\"\u003elink\u003c/a\u003e\n\u003c/uni-translate\u003e\n```\n\n#### open and modify ./public/lang-menu.json and translation files into ./public/i18n/ folder\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiwebkit%2Flocalize-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiwebkit%2Flocalize-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiwebkit%2Flocalize-react/lists"}