Skip to content

Urgent need for localization #80

Closed

Description

@huchang47

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.

Activity

  1. ahsanba-id commented on Sep 4, 2023

    @ahsanba-id

    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?

  2. mcmonkey4eva commented on Sep 4, 2023

    @mcmonkey4eva
    Contributor

    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.

  3. ahsanba-id commented on Sep 4, 2023

    @ahsanba-id

    Oh, you're right. I'll definitely look forward to another features being added while you keep working on this awesome UI!

  4. mcmonkey4eva commented on Jan 15, 2024

    @mcmonkey4eva
    Contributor

    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
    image

    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 translation
    EDIT: 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 .cshtml or .js files to add the translate class to text elements so they get listed in the autotranslation handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions