mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 14:41:24 +08:00
* feat(translate): add settings with autoCopy option to translate state Add settings object to translate state to store user preferences like autoCopy functionality. Implement updateSettings reducer to handle settings updates. * docs(translate): add todo comment for settings field * refactor(translate): simplify settings update and expose in hook Remove dependency on objectEntriesStrict and use Object.entries directly Expose translate settings and update function in useTranslate hook * fix(useTranslate): use dispatch to update * feat(translate): add auto-copy setting for translated content Add auto-copy functionality that automatically copies translated text to clipboard when enabled. Includes settings toggle in TranslateSettings component and integration with translate logic. * chore: add tailwindcss file association to vscode settings * feat(translate): add auto copy setting and improve switch styling Add new translation strings for auto copy feature and apply consistent primary color to all switches in translation settings * fix(theme): update hero UI primary color variable Add --primary CSS variable to match --color-primary for hero UI components * refactor(hooks): rename _updateSettings to handleUpdateSettings for clarity Improve variable naming consistency and better reflect the function's purpose * refactor(translate): simplify settings update using Object.assign * fix(translate): handle clipboard write errors in copy functionality Add error handling for clipboard operations to prevent silent failures and show user feedback when copy fails * feat(i18n): add translation placeholders for new UI strings Add new translation keys for front matter operations and auto-copy setting Include additional Anthropic OAuth related messages for better user feedback * fix(i18n): Auto update translations for PR #10032 * fix(i18n): correct translation errors in multiple language files Fix incorrect translations and fill missing values in Japanese, Russian, Portuguese, French and Spanish localization files. Changes include correcting property name in Japanese, adding missing empty value in Russian, fixing editValue in Portuguese, correcting date and empty values in French, and fixing multiple terms in Spanish. * fix: update error message in migration from 151 to 152 * fix(translate): await copy operation and show success message Ensure the copy operation completes before proceeding and notify user of successful copy * feat(translate): add delay timer for auto-copy functionality Use setTimeoutTimer to introduce a 100ms delay before auto-copy to ensure UI stability * fix(translate): increase modal width from 420 to 520 for better content display * fix(ThemeProvider): ensure proper theme class is applied to body Add logic to toggle 'light' and 'dark' classes on body element when theme changes * fix(translate): only copy when success * fix(translate): remove redundant error message display on translation failure * fix(translate): handle abort and empty translation cases properly Improve error handling for translation abort scenarios and empty responses. Show appropriate user messages when translation is aborted and properly handle NoOutputGeneratedError cases. * fix(translate): handle translation errors by showing user-friendly message Display a localized error message to users when translation fails instead of just logging it --------- Co-authored-by: GitHub Action <action@github.com> |
||
|---|---|---|
| .. | ||
| extensions.json | ||
| launch.json | ||
| settings.json | ||
| snippet.code-snippets | ||