Skip to content

Conversation

Cleboost
Copy link

This pull request adds a new Google Translate integration to the launcher, allowing users to translate text directly from the launcher UI. The changes introduce a new translate command, user interface components for language selection and translation, and a service for performing translations using Google Translate. The implementation includes error handling, persistent language preferences, and clipboard integration.

Translate feature integration:

  • Added a new "Translate" command to the launcher configuration, making translation available as a launcher action (config/LauncherConfig.qml).
  • Implemented a new singleton service Translator.qml that handles language selection, translation requests to Google Translate, persistent language preferences, and error handling (modules/launcher/services/Translator.qml).

Launcher UI and workflow changes:

  • Updated the launcher action parsing logic to recognize and route translate commands, including language selection and translation states (modules/launcher/AppList.qml).
  • Added new UI states and list item delegates for language selection (LanguageItem.qml) and translation display/interaction (TranslateItem.qml), including real-time feedback and clipboard copy functionality (modules/launcher/AppList.qml, modules/launcher/items/LanguageItem.qml, modules/launcher/items/TranslateItem.qml). [1] [2] [3] [4]

Launcher command handling:

  • Modified launcher content handling to ensure that the new translate command is correctly triggered and processed alongside existing commands (modules/launcher/Content.qml).
recording_20250920_23-44-36.mp4

Introduces translation functionality using google trad api. Adds new Translate and Language items, a Translator service, and updates launcher logic to support language selection and text translation directly from the launcher interface.
Changed the description for the Translate feature from LibreTranslate to Google Translate to reflect the current service being used.
@RENBOWS
Copy link

RENBOWS commented Sep 27, 2025

Is this integration installed manually?

@Markus328
Copy link
Contributor

its a PR, so it has a fork. Clone the repo and do the manual build (see instructions in the README)

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.

3 participants