Optimize the translation code and significantly improve the batch translation speed

Optimize the translation code and significantly improve the batch translation speed


Former-commit-id: 391a5b23779953dd562336ff60b4e12da707c31b
This commit is contained in:
Physton
2023-06-02 18:53:56 +08:00
parent 628e7875ca
commit 480c5fcdec
3 changed files with 4 additions and 4 deletions

View File

@@ -1 +1 @@
b885cd5ca615ee7b08469b981c04703e86fc223c
8224f06d6e2a3ba62419b1844ef633646a91a6f7

View File

@@ -1 +1 @@
9405def87aef1e6727dbc8f56478b193748d5d73
0d0b6a64898ee897b52421cd49f20c84e39ffe32

View File

@@ -191,10 +191,10 @@ Github: Physton/sd-webui-prompt-all-in-one`,
name = name.replace('[Free] ', '[' + this.getLang('free') + '] ')
name = name.replace('[ApiKey] ', '[' + this.getLang('apply_for_free') + '] ')
// 不足100个字符的用空格补齐
if (name.length < 30) {
/*if (name.length < 30) {
name += new Array(30 - name.length).join(' ')
}
name += '[QPS: ' + (item.concurrent || 1) + ']'
name += '[QPS: ' + (item.concurrent || 1) + ']'*/
return name
},
refreshCSVs() {