{"id":18798505,"url":"https://github.com/uiwebkit/localize-vue-3x","last_synced_at":"2026-04-25T12:32:45.691Z","repository":{"id":143122828,"uuid":"437849953","full_name":"uiwebkit/localize-vue-3x","owner":"uiwebkit","description":"Uni Localization example for Vue.js 3.x","archived":false,"fork":false,"pushed_at":"2022-02-07T12:55:44.000Z","size":487,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-21T19:18:26.535Z","etag":null,"topics":["custom-elements","html","localization","localize","translate","translation","uiwebkit","uni-localization","vue","vue-cli","vue3","vuejs","web","web-components","widget"],"latest_commit_sha":null,"homepage":"https://uiwebkit.com/wgt/loc/2","language":"Vue","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}},"created_at":"2021-12-13T11:39:42.000Z","updated_at":"2023-02-16T13:47:11.000Z","dependencies_parsed_at":"2023-04-25T18:26:33.374Z","dependency_job_id":null,"html_url":"https://github.com/uiwebkit/localize-vue-3x","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uiwebkit/localize-vue-3x","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize-vue-3x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize-vue-3x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize-vue-3x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize-vue-3x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uiwebkit","download_url":"https://codeload.github.com/uiwebkit/localize-vue-3x/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwebkit%2Flocalize-vue-3x/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32262801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: 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","localization","localize","translate","translation","uiwebkit","uni-localization","vue","vue-cli","vue3","vuejs","web","web-components","widget"],"created_at":"2024-11-07T22:12:14.581Z","updated_at":"2026-04-25T12:32:45.612Z","avatar_url":"https://github.com/uiwebkit.png","language":"Vue","funding_links":[],"categories":["Components \u0026 Libraries"],"sub_categories":["Utilities"],"readme":"# Uni Localization example for Vue.js 3.x\n\nCheck out demo [here](https://uiwebkit.github.io/localize-vue-3x/)\n\nCheck out our docs [here](https://uiwebkit.com/wgt/loc/2)\n\n### Add to vue.config.js\n\n```js\nmodule.exports = {\n    ...,\n    chainWebpack: (config) =\u003e {\n        config.module\n            .rule(\"vue\")\n            .use(\"vue-loader\")\n            .tap((options) =\u003e ({\n                ...options,\n                compilerOptions: {\n                    ...options.compilerOptions,\n                    // treat any tag that starts with uni- as custom elements\n                    isCustomElement: (tag) =\u003e tag.startsWith(\"uni-\"),\n                },\n            }));\n    },\n    ...\n};\n```\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-vue-3x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiwebkit%2Flocalize-vue-3x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiwebkit%2Flocalize-vue-3x/lists"}