Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you plan to implement i18n? #49

Open
RohanIyengar23 opened this issue Jan 17, 2025 · 3 comments
Open

How do you plan to implement i18n? #49

RohanIyengar23 opened this issue Jan 17, 2025 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@RohanIyengar23
Copy link

No description provided.

@BrunoGeorgevich
Copy link

I can translate to Portuguese, for example.

@nbonamy nbonamy self-assigned this Jan 17, 2025
@nbonamy nbonamy added the enhancement New feature or request label Jan 17, 2025
@nbonamy
Copy link
Owner

nbonamy commented Jan 17, 2025

No plans yet. It has been on the TODO list since the beginning 😀

@nbonamy
Copy link
Owner

nbonamy commented Jan 18, 2025

Witsy is an Electron app meaning some messages are emitted from the main process and labels and other messages are emitted from the renderer process. The UI (renderer) is written using Vue3. So it means:

  • Vue i18n will probably use https://vue-i18n.intlify.dev
  • Will find a way to manage a single i18n file that will be shared between main and renderer (should not be too hard)
  • Not sure if I need a library for the main process. A few-lines custom thing should probably be enough

The main work is finding all existing hardcoded strings and replace them with whatever is needed for localization to happen at runtime. Would like to use a LLM to do the work for me automatically of course!

The other implication is: do we translate all prompts too (system, scratchpad, plugins/tools descriptions but also commands and experts). Beyond the work to make this happen, this also begs the question about how LLMs are going to "react" to this and are they gonna perform equally say in Portuguese than in English. This is a big unknown tbh.

To be honest, not necessarily super high on my priority list right now but welcoming assistance 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants