{"id":15462896,"url":"https://github.com/uiwebkit/localize","last_synced_at":"2026-05-07T01:02:58.020Z","repository":{"id":143122823,"uuid":"406321171","full_name":"uiwebkit/localize","owner":"uiwebkit","description":"Uni Localize","archived":false,"fork":false,"pushed_at":"2022-09-24T08:00:04.000Z","size":1365,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T16:03:11.603Z","etag":null,"topics":["custom-elements","html","javascript","languages","localization","localizations","localize","micro-frontend","microfrontend","stencil","stenciljs","translate","translation","typescript","web","web-components","webcomponents","widget"],"latest_commit_sha":null,"homepage":"https://uiwebkit.com/wgt/loc/2/","language":"HTML","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-09-14T10:24:53.000Z","updated_at":"2025-04-16T06:17:53.000Z","dependencies_parsed_at":"2023-04-25T18:25:22.234Z","dependency_job_id":null,"html_url":"https://github.com/uiwebkit/localize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uiwebkit/localize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uiwebkit","download_url":"https://codeload.github.com/uiwebkit/localize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32718323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T00:29:05.620Z","status":"ssl_error","status_checked_at":"2026-05-07T00:28:57.074Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","javascript","languages","localization","localizations","localize","micro-frontend","microfrontend","stencil","stenciljs","translate","translation","typescript","web","web-components","webcomponents","widget"],"created_at":"2024-10-02T00:05:37.656Z","updated_at":"2026-05-07T01:02:57.994Z","avatar_url":"https://github.com/uiwebkit.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D\u0026colorA=16161d\u0026style=flat-square)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/@uiwebkit/loc)\n\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n  \u003ctemplate\u003e\n    \u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@uiwebkit/icn@1.2.2/dist/icn/icn.esm.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@uiwebkit/mat@2.0.0-10/dist/mat.esm.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@uiwebkit/udk@2.0.0-26/dist/udk.esm.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@uiwebkit/loc@2.0.0-10/dist/localize/localize.esm.js\"\u003e\u003c/script\u003e\n    \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n  \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n```html\n\u003cuni-event-load\n  url=\"https://uni.github.io/json/lang-store-flag.json\"\n  prop=\"value\"\n\u003e\n  \u003cuni-lang-menu\u003e\u003c/uni-lang-menu\u003e\n\u003c/uni-event-load\u003e\n\n\u003cuni-translate\u003e\n  This content is localized\n\u003c/uni-translate\u003e\n```\n\n# Uni Localize\n\nUni Localize is a set of Web Components \u0026 Custom Elements for adding multilingual support to your website and customize it in the declarative style.\n\nUni Localize components have three modes:\n1. Custom Element - `100%` convenience;\n2. Web Component - `100%` security;\n3. Custom Element with 'only' prop - `100%` customization;\n\nUni Localize takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components \u0026 Custom Elements that run in any browser supporting the Custom Elements v1 spec.\n\nUni Localize components are just HTML Web Components \u0026 Custom Elements, so they work in any major framework or with no framework at all.\n\n## Getting Started\n\nClone this repo to a new directory:\n\n```bash\ngit clone https://github.com/uiwebkit/localize.git uni-localize\ncd uni-localize\n```\n\nand run:\n\n```bash\nnpm i\nnpm run serve:dev\n```\n\nTo build the component for production, run:\n\n```bash\nnpm run build:prod\n```\n\nCheck out our docs [here](https://uiwebkit.com/wgt/loc/2/).\n\n\n## Naming Components\n\nWhen creating new component tags, use `uni` in the component name (ex: `\u003cuni-translate\u003e`) or use a prefix that fits your company or any name for a group of related components. For example, all the UiWebKit generated Web Components \u0026 Custom Elements use the prefix `uni`.\n\n\n## Using Components\n\nThere are two strategies we recommend for using Uni Localization:\n\n### Script tag\n\n- Put a script tag `\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@uiwebkit/loc@latest/dist/loc/loc.esm.js\"\u003e\u003c/script\u003e` in the head of your index.html\n- Then you can use web components and custom elements anywhere in your Template, JSX, HTML, etc.;\n\n### Node Modules\n- Run `npm i @uiwebkit/loc --save`;\n- Paste `import @uiwebkit/loc;` into the main JS/TS file;\n- Then you can use web components and custom elements anywhere in your Template, JSX, HTML, etc.;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiwebkit%2Flocalize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiwebkit%2Flocalize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiwebkit%2Flocalize/lists"}