feat: Add 'EnterToSend' Option & Update Br. Translation 🇧🇷 (#2413)

* chore: Add EnterToSend, Translation Portuguese Brazilian Update

* Inverted selection and corrected translation

* fix: removed Trailing spaces not allowed

* feat: Refactor key event handler & updated translations

* fix: removed return; & updated files translations

* fix: duplicate switchs on General.tsx

* fix: added again switch

* refactor(useTextarea): limit refactoring of handleKeyDown

* refactor: correct keyDown handler and add English localization

---------

Co-authored-by: Raí Santos <140329135+itzraiss@users.noreply.github.com>
Co-authored-by: Raí Santos <raimorningstarchristus@gmail.com>
This commit is contained in:
Danny Avila 2024-04-14 19:06:20 -04:00 committed by GitHub
parent f380f261a5
commit d2d9ac0280
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 966 additions and 896 deletions

View file

@ -405,6 +405,7 @@ export default {
com_nav_theme_system: 'System',
com_nav_theme_dark: 'Dark',
com_nav_theme_light: 'Light',
com_nav_enter_to_send: 'Press Enter to send messages',
com_nav_user_name_display: 'Display username in messages',
com_nav_show_code: 'Always show code when using code interpreter',
com_nav_clear_all_chats: 'Clear all chats',