You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a participant of a Chinese localization project of stable-diffusion-webui. I like StableSwarmUI very much, and hope to do its Chinese localization soon.
I would also like to contribute to Indonesian translation project, but I don't have enough experience in programming and need guidance.
Should we create the translation on our own fork, or can we merge it in a separate file on yours so users can select the option from the main user interface?
There isn't tooling to create localizations yet, this issue is a feature request to add that.
It's very much planned, and I have a pretty solid idea of how, it's just a matter of getting to it (between all other priority features).
I pushed it down a little on the priority list, as any localizations made would need to be updated for, uh, well, most of the other priority features, so it's a bit better to push localization after all the things that would need to be localized are more or less done to the point of not being likely to having their messaging change significantly.
We're approaching beta now, so I've started building out the tooling. At the moment it does not yet cover all text fields, but it gets most of the core ones.
I'm building out placeholders files with AI translation, and started with Chinese so you could look into it.
Here's what the UI looks like with mostly-translated text
It's a dirt simple json file, where the key (on the left), is English, and the value (on the right) is the translation.
The AI translator screws up a bunch, so there's a lot of spots left blank ("") where the AI just completely failed to generate a proper translation EDIT: the worst of the screwups have been solved now, it now mostly generates translations to almost everything
(1) filling out the missing fields
(2) correcting any mistakes the AI made. Probably there's a bunch. I don't know I don't speak Chinese.
(3) fixing holes in the text list - ie, edit the .cshtml or .js files to add the translate class to text elements so they get listed in the autotranslation handler.
Activity
ahsanba-id commentedon Sep 4, 2023
I would also like to contribute to Indonesian translation project, but I don't have enough experience in programming and need guidance.
Should we create the translation on our own fork, or can we merge it in a separate file on yours so users can select the option from the main user interface?
mcmonkey4eva commentedon Sep 4, 2023
There isn't tooling to create localizations yet, this issue is a feature request to add that.
It's very much planned, and I have a pretty solid idea of how, it's just a matter of getting to it (between all other priority features).
I pushed it down a little on the priority list, as any localizations made would need to be updated for, uh, well, most of the other priority features, so it's a bit better to push localization after all the things that would need to be localized are more or less done to the point of not being likely to having their messaging change significantly.
ahsanba-id commentedon Sep 4, 2023
Oh, you're right. I'll definitely look forward to another features being added while you keep working on this awesome UI!
initial experimental translation engine
add chinese language, for #80
mcmonkey4eva commentedon Jan 15, 2024
We're approaching beta now, so I've started building out the tooling. At the moment it does not yet cover all text fields, but it gets most of the core ones.
I'm building out placeholders files with AI translation, and started with Chinese so you could look into it.
Here's what the UI looks like with mostly-translated text

The relevant translation source file is here: https://github.com/Stability-AI/StableSwarmUI/blob/master/languages/zh.json
It's a dirt simple json file, where the key (on the left), is English, and the value (on the right) is the translation.
The AI translator screws up a bunch, so there's a lot of spots left blank (
"") where the AI just completely failed to generate a proper translationEDIT: the worst of the screwups have been solved now, it now mostly generates translations to almost everything
I've also started writing up a contributing doc for languages: https://github.com/Stability-AI/StableSwarmUI/blob/master/CONTRIBUTING.md#languages
PRs are now welcome for:
(1) filling out the missing fields
(2) correcting any mistakes the AI made. Probably there's a bunch. I don't know I don't speak Chinese.
(3) fixing holes in the text list - ie, edit the
.cshtmlor.jsfiles to add thetranslateclass to text elements so they get listed in the autotranslation handler.