Commit Graph

47 Commits

Author SHA1 Message Date
Wolfsblvt f3521e7007 Migrate built-in extensions to use manifest-based activate hooks (#5435)
* Convert jQuery/IIFE wrappers to exported init() functions and register activate hooks in 8 extension manifests

* Convert remaining extensions to exported init() with activate hooks and await initExtensions()

- Convert jQuery/IIFE wrappers to exported init() functions in expressions, memory, quick-reply, regex, stable-diffusion, translate, tts, and vectors extensions

- Register init functions as activate hooks in extension manifests

- Properly await async initExtensions() in firstLoadInit()

* Fix eslint

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2026-04-09 23:49:55 +03:00
Cohee b370808753 Migrate substituteParams calls to new engine (#4901) 2025-12-18 00:01:08 +02:00
Cohee 6221c540e4 Reasoning: Support auto-parse for impersonation results (#4489) 2025-09-06 18:16:06 +03:00
Cohee d91c6c28cb Translate: Update API key management 2025-06-28 15:32:29 +03:00
Cohee 579ef1e86c Refactor API key management in extensions 2025-06-26 21:24:51 +03:00
bmen25124 50f1e3f0f2 Added translation to reasoning block (#3617)
* Added translate to reasoning block

* Added mising reset value

* Shortcut nullable type

* Added reasoning edited/deleted events, better naming

* Fixed async call

* Added await to saveChat calls

* Exported updateReasoningUI

* Removed translated reasoning on edit if auto mode is none

* Added new value check before updating reasoning block, fixed an issue that display value stays same when we edit the message.

* Translate reasoning before the main message

* Fixed auto mode translate for reasoning message

* Translate reasoning first. Prevent out of bounds access

* Fix translating reasoning on swipe generation

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-03-06 21:30:17 +02:00
Cohee 58bbfc0d4e Add types for global translation function 2025-02-19 22:18:09 +02:00
Cohee 29acc2e2db Add Deepl endpoint selection
Fixes #3224
2024-12-27 13:02:06 +00:00
Cohee 7f2cf6f7e6 Add provider arg to /translate command 2024-12-25 23:31:37 +02:00
Cohee 650853eabb Translation: Split Portuguese langs 2024-12-23 20:28:21 +02:00
Cohee a9aff676ba [chore] Apply lint and formatter 2024-11-11 22:36:06 +02:00
Yaroslav Sivakov ba2b251d6e Exclude links to embedded images from translation 2024-11-10 17:30:55 +03:00
Cohee 01b83f893b Fix translation key removal 2024-09-13 21:48:35 +03:00
Cohee 1842a8ee6d Add buttons to remove SD/translate secrets 2024-08-13 20:43:45 +03:00
Cohee 2ef6004bd5 Update translation extension to new popup 2024-06-26 00:40:13 +03:00
Cohee 62a1cb1dce Move built-in extensions to fixed wand containers 2024-06-24 23:17:58 +03:00
Cohee c8b9b62d8a Update built-in extensions to use fixed order in extensions menu 2024-06-24 22:15:08 +03:00
Cohee feb7675d2f Auto-set language on exported translate function. 2024-06-17 21:18:30 +03:00
Cohee c7dc63200a Merge branch 'staging' into ruRuNew 2024-06-16 15:56:07 +03:00
Cohee 5860719780 Fix return type of /translate command 2024-06-15 21:58:15 +03:00
Yokayo 84ee968ab4 More localizable text 2024-06-12 16:30:32 +07:00
Yokayo fc03fea00a Add support for Yandex Translate API 2024-06-10 17:12:09 +07:00
Cohee 62eb790b0b Add /translate command 2024-05-30 22:03:51 +03:00
Cohee c21deb3a8c #2289 Fix message translation on edit 2024-05-21 14:23:18 +03:00
Cohee fd18e0cc78 #2192 Fix order of events in TTS/translate interaction 2024-05-13 18:53:54 +03:00
Cohee b30d69b2a6 Clean-up styles and JQuery use 2024-04-27 21:22:50 +03:00
Cohee 60e099e852 Clean-up diff pt.2 2024-04-27 21:15:44 +03:00
Cohee c49b37f968 Clean-up diff 2024-04-27 21:11:41 +03:00
evpeople 4521dde455 add a button to translate input message 2024-04-27 13:46:13 +08:00
Cohee 6290dff3d9 #2065 Add option to translate text before classification 2024-04-11 22:09:05 +03:00
Cohee cb536a7611 Save a list of safe to export secret keys 2024-02-23 21:41:54 +02:00
berbant eb89337f51 Update index.js 2024-02-22 23:49:47 +04:00
berbant ed875ec77d Update index.js
Added new translateProvider: Lingva Translate
2024-01-31 22:42:28 +04:00
Cohee 45f6cb0fa8 Add chunked translate for long messages 2023-12-22 00:05:23 +02:00
valadaptive 5f1bed1e70 Enable object-curly-spacing lint 2023-12-04 12:32:41 -05:00
valadaptive a37f874e38 Require single quotes 2023-12-02 13:04:51 -05:00
valadaptive c893e2165e Enable no-prototype-builtins lint 2023-12-02 12:10:31 -05:00
Tony Ribeiro df4ca46c02 Save chat id between received and rendered event for safety (blip extension allow multiple message received before one is rendered). Added export in translate extension for usage in blip extension. 2023-10-09 01:26:57 +02:00
yuxiang 0b8295926e add bing translate 2023-10-06 15:51:04 +03:00
Cohee d19c151669 Add DeepLX translation provider #1111 2023-09-10 18:53:52 +03:00
Cohee 70071312d3 Add OneRingTranslator #521 2023-09-10 17:27:50 +03:00
Cohee ec23356c99 Move translation endpoints into a separate file 2023-09-10 16:41:36 +03:00
Bahamut fe64597a23 LibreTranslate URL Example 2023-09-05 23:30:58 +03:00
Bahamut de905875c4 LibreTranslate 2023-08-26 20:47:25 +03:00
Cohee e77da62b85 Add padding to cache key. Fix Safari display issues. Fix 400 on empty translate. Reset bias cache on changing model. 2023-08-23 10:32:48 +03:00
Cohee fd95b79ae9 Fix auto-translate plugin. Add new event types for post-rendering 2023-08-22 22:45:12 +03:00
Cohee edd41989fd Initial commit 2023-07-20 20:32:15 +03:00