• Stars
    star
    852
  • Rank 53,137 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 1 year ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Stable Diffusion web UI bilingual localization extensions. SD WebUI双语对照翻译插件

中文文档 / 日本語

sd-webui-bilingual-localization

sd-webui-bilingual-localization

Stable Diffusion web UI bilingual localization extensions.

Snipaste_2023-03-30_01-05-45

Features

  • Bilingual translation, no need to worry about how to find the original button.
  • Compatible with language pack extensions, no need to re-import.
  • Support dynamic translation of title hints.
  • Additional support Scoped and RegExp pattern, more flexible translation.

Installation

Choose one of the following methods, Need to use webui with extension support (Versions after 2023)

Method 1

Use the Install from URL provided by webui to install

Click in order Extensions - Install from URL

Then fill in the first text box with https://github.com/journey-ad/sd-webui-bilingual-localization, click the Install button.

Snipaste_2023-02-28_00-27-48

After that, switch to the Installed panel and click the Apply and restart UI button.

Snipaste_2023-02-28_00-29-14

Method 2

Clone to your extension directory manually.

git clone https://github.com/journey-ad/sd-webui-bilingual-localization extensions/sd-webui-bilingual-localization

Usage

⚠️Important⚠️
Make sure Settings - User interface - Localization is set to None

In Settings - Bilingual Localization panel, select the localization file you want to enable and click on the Apply settings and Reload UI buttons in turn.

Snipaste_2023-02-28_00-04-21

Scoped

Localization supports scoped to prevent global impact. The syntax rule is ##<SCOPE ID>##<TEXT>.
Scoped text is effective only when the ID of the ancestor element of the node matches the specified scope.

{
  ...
  "##tab_ti##Normal": "正态", // only `Normal` under the element with id="tab_ti" will be translated to `正态`.
  "##tab_threedopenpose##Normal": "法线图", // only `Normal` under the element with id="tab_threedopenpose" will be translated to `法线图`.
  ...
}

RegExp pattern

Localization support RegExp pattern, syntax rule is @@<REGEXP>, capturing group is $n, doc: String.prototype.replace()

{
  ...
  "@@/^(\\d+) images in this directory, divided into (\\d+) pages$/": "目录中有$1张图片,共$2页",
  "@@/^Favorites path from settings: (.*)$/": "设置的收藏夹目录:$1",
  ...
}

How to get localization file

Localization files are no longer provided with the plugin, please install a third-party language extensions and set-up as described in the Usage section of this article.

More Repositories

1

Moe-Counter

多种风格可选的萌萌计数器
JavaScript
1,301
star
2

pixiv-viewer

又一个Pixiv阅览工具
Vue
259
star
3

live2d_src

基于 https://github.com/EYHN/hexo-helper-live2d 的修改版
JavaScript
237
star
4

chat-room

一个普通的聊天室
EJS
191
star
5

cPlayer-Typecho-Plugin

A typecho plugin for a beautiful html5 music player https://github.com/MoePlayer/cPlayer/tree/f9b593dcd89395f9d7dd08ccda428f7628ab9ab2
PHP
129
star
6

Bitmagnet-Next-Web

🧲 A modern BitTorrent indexer, powered by Bitmagnet. / 一个更现代的磁力搜索列表程序,由 Bitmagnet 强力驱动。
TypeScript
119
star
7

Snow-Typecho-Plugin

简单的,有丰富自定义项的 typecho 页面下雪插件
PHP
74
star
8

honkai-starrail-scene

【崩坏:星穹铁道】预约页场景提取
JavaScript
61
star
9

jianpu

利用Web Audio API将数字简谱转为钢琴曲
HTML
51
star
10

journey-ad

44
star
11

hentai-wallpaper

绅士的壁纸
Python
42
star
12

slime-pixi

使用 PIXI.JS 复刻的原神史莱姆乐园活动
JavaScript
33
star
13

sd-webui-custom

给Stable Diffusion web UI加点料
Python
33
star
14

HyperMD-Typecho-Plugin

适用于Typecho的Markdown编辑器HyperMD
CSS
32
star
15

wangEditor-Typecho-Plugin

适用于Typecho的wangEditor插件 https://github.com/wangfupeng1988/wangEditor/
JavaScript
32
star
16

MDRuby-Typecho-Plugin

Typecho Markdown Ruby 标签拓展支持插件
PHP
22
star
17

oreooo

使用 Vue CLI 重置的奥利奥!
Vue
22
star
18

pixel-paint

Vue 实现的像素绘板应用
Vue
16
star
19

bilicdn

12
star
20

uebersicht-widget

我用的一些 Übersicht 小部件
JavaScript
11
star
21

blog-img

CSS
10
star
22

nocilol.me

个人博客
Stylus
10
star
23

HideText-Typecho-Plugin

为文章添加肉眼不可见的额外信息,可用于追踪未授权转载行为
PHP
9
star
24

DanmakuSender

哔站弹幕发送者uid反查
JavaScript
9
star
25

Huaji-Typecho-Plugin

A typecho plugin of Huaji.
PHP
5
star
26

cf-pages-proxy

JavaScript
4
star
27

oreooo-react

使用 React Hooks 重置的奥利奥!
JavaScript
3
star
28

qqfm-vue

Vue 制作的 QQFM 播放器
Vue
2
star
29

Image-Box-Typecho-Plugin

Image-Box for Typecho
PHP
2
star
30

journey-ad.github.io

GitHub pages index
2
star
31

Shields-Typecho-Plugin

为 Typecho 添加 shields.io 支持
PHP
1
star
32

dotfiles_autobackup

auto backup configuration dot files.
1
star