{"id":13769021,"url":"https://github.com/journey-ad/sd-webui-bilingual-localization","last_synced_at":"2025-05-16T14:08:25.937Z","repository":{"id":99542898,"uuid":"606669199","full_name":"journey-ad/sd-webui-bilingual-localization","owner":"journey-ad","description":"Stable Diffusion web UI bilingual localization extensions. SD WebUI双语对照翻译插件","archived":false,"fork":false,"pushed_at":"2024-08-03T16:07:25.000Z","size":190,"stargazers_count":905,"open_issues_count":17,"forks_count":80,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-12T11:55:32.605Z","etag":null,"topics":["automatic1111","localization","stable-diffusion","stable-diffusion-webui","stable-diffusion-webui-plugin"],"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/journey-ad.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":"2023-02-26T07:26:55.000Z","updated_at":"2025-04-08T14:52:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4db170f-293a-48f1-bd8a-498c7f0f0c45","html_url":"https://github.com/journey-ad/sd-webui-bilingual-localization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/journey-ad%2Fsd-webui-bilingual-localization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/journey-ad%2Fsd-webui-bilingual-localization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/journey-ad%2Fsd-webui-bilingual-localization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/journey-ad%2Fsd-webui-bilingual-localization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/journey-ad","download_url":"https://codeload.github.com/journey-ad/sd-webui-bilingual-localization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544146,"owners_count":22088807,"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":["automatic1111","localization","stable-diffusion","stable-diffusion-webui","stable-diffusion-webui-plugin"],"created_at":"2024-08-03T17:00:15.514Z","updated_at":"2025-05-16T14:08:25.894Z","avatar_url":"https://github.com/journey-ad.png","language":"JavaScript","funding_links":[],"categories":["GitHub projects"],"sub_categories":[],"readme":"[中文文档](README_ZH.md) / [日本語](README_JA.md)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://count.getloli.com/get/@sd-webui-bilingual-localization.github\" alt=\"sd-webui-bilingual-localization\"\u003e\u003c/p\u003e\n\n# sd-webui-bilingual-localization\n[Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) bilingual localization extensions.\n\n![Snipaste_2023-03-30_01-05-45](https://user-images.githubusercontent.com/16256221/228617304-3107244b-ce13-4b96-b665-1d13090d24a7.png)\n\n## Features\n- Bilingual translation, no need to worry about how to find the original button.\n- Compatible with language pack extensions, no need to re-import.\n- Support dynamic translation of title hints.\n- Additional support Scoped and RegExp pattern, more flexible translation.\n\n## Installation\n\nChoose one of the following methods, Need to use webui with extension support \u003csup\u003e(Versions after 2023)\u003c/sup\u003e\n\n#### Method 1\n\nUse the `Install from URL` provided by webui to install\n\nClick in order \u003ckbd\u003eExtensions\u003c/kbd\u003e - \u003ckbd\u003eInstall from URL\u003c/kbd\u003e\n\nThen fill in the first text box with `https://github.com/journey-ad/sd-webui-bilingual-localization`, click the \u003ckbd\u003eInstall\u003c/kbd\u003e button.\n\n![Snipaste_2023-02-28_00-27-48](https://user-images.githubusercontent.com/16256221/221625310-a6ef0b4c-a1e0-46bb-be9c-6d88cd0ad684.png)\n\nAfter that, switch to the \u003ckbd\u003eInstalled\u003c/kbd\u003e panel and click the \u003ckbd\u003eApply and restart UI\u003c/kbd\u003e button.\n\n![Snipaste_2023-02-28_00-29-14](https://user-images.githubusercontent.com/16256221/221625345-9e656f25-89dd-4361-8ee5-f4ab39d18ca4.png)\n\n\n#### Method 2\n\nClone to your extension directory manually.\n\n```bash\ngit clone https://github.com/journey-ad/sd-webui-bilingual-localization extensions/sd-webui-bilingual-localization\n```\n\n## Usage\n\n\u003e **⚠️Important⚠️**   \n\u003e Make sure \u003ckbd\u003eSettings\u003c/kbd\u003e - \u003ckbd\u003eUser interface\u003c/kbd\u003e - \u003ckbd\u003eLocalization\u003c/kbd\u003e is set to `None`\n\nIn \u003ckbd\u003eSettings\u003c/kbd\u003e - \u003ckbd\u003eBilingual Localization\u003c/kbd\u003e panel, select the localization file you want to enable and click on the \u003ckbd\u003eApply settings\u003c/kbd\u003e and \u003ckbd\u003eReload UI\u003c/kbd\u003e buttons in turn.\n\n![Snipaste_2023-02-28_00-04-21](https://user-images.githubusercontent.com/16256221/221625729-73519629-8c1f-4eb5-99db-a1d3f4b58a87.png)\n\n## Scoped\n\nLocalization supports scoped to prevent global polluting. The syntax rules are as follows:\n- `##\u003cSCOPE ID\u003e##\u003cTEXT\u003e` Scoped text will only take effect when the ancestor element ID matches the specified scope.\n- `##@\u003cSELECTOR\u003e##\u003cTEXT\u003e` Scoped text will only take effect when the ancestor element matches the specified CSS selector.\n\n```json\n{\n  ...\n  \"##tab_ti##Normal\": \"正态\", // only the text `Normal` under the element with id=\"tab_ti\" will be translated to `正态`.\n  \"##tab_threedopenpose##Normal\": \"法线图\", // only the text `Normal` under the element with id=\"tab_threedopenpose\" will be translated to `法线图`.\n  \"##@.extra-networks .tab-nav button##Lora\": \"Lora模型\", // only the text `Lora` under the element with class=\".extra-networks .tab-nav button\" will be translated to `Lora模型`.\n  ...\n}\n```\n\n## RegExp pattern\n\nLocalization support RegExp pattern, syntax rule is `@@\u003cREGEXP\u003e`, capturing group is `$n`, doc: [String.prototype.replace()](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/replace)\n```json\n{\n  ...\n  \"@@/^(\\\\d+) images in this directory, divided into (\\\\d+) pages$/\": \"目录中有$1张图片，共$2页\",\n  \"@@/^Favorites path from settings: (.*)$/\": \"设置的收藏夹目录：$1\",\n  ...\n}\n```\n\n## How to get localization file\n\nLocalization files are no longer provided with the plugin, please install a third-party language extensions and set-up as described in the [Usage](#usage) section of this article.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjourney-ad%2Fsd-webui-bilingual-localization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjourney-ad%2Fsd-webui-bilingual-localization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjourney-ad%2Fsd-webui-bilingual-localization/lists"}