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

Initialized translations #15

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Initialized translations #15

wants to merge 21 commits into from

Conversation

zAlweNy26
Copy link
Member

Description

Initial setup for adding translations to the GUI.

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

@pieroit
Copy link
Member

pieroit commented Jun 21, 2023

Beautiful!
Since we keep data in the admin about chosen language, please consider passing it through the websocket json (would allow prompt translation and could be useful to plugins)

@zAlweNy26
Copy link
Member Author

Nice idea, I will add that soon

@zAlweNy26
Copy link
Member Author

Now on every message, the websocket sends this json:

{ 
    text: message,
    lang: localStorage.currentLocale,
    prompt_settings: settings 
}

@pieroit
Copy link
Member

pieroit commented Jun 22, 2023

This is great to involve the international community

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

Successfully merging this pull request may close these issues.

2 participants