feat(translation): Add Free Translation Services and World Description Translation #137

Closed
opened 2026-04-05 16:16:16 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @gujimy on 1/11/2026

Description:

This pull request introduces two main enhancements to the translation functionality, making it more accessible and robust.

1. Free, API-Key-Less Translation Services

This addresses the core issue where the translation feature was unusable without a user-provided API key. This change integrates two free translation providers:

  • Microsoft Translator (Default): Utilizes the free authentication token from Microsoft Edge's translation service.
  • Google Translate: Leverages the public Google Translate API.

Now, the translation feature works out-of-the-box for all users, significantly improving accessibility.

2. World Description Translation & Code Refactoring

  • Feature: A translation button has been added to the World Dialog, allowing users to translate world descriptions, similar to the existing user bio translation.
  • Refactor: The translation logic in both WorldDialog.vue and UserDialog.vue has been consolidated into a single, centralized translateText function within the advancedSettingsStore. This removes hardcoded API calls from components, eliminates duplicate code, and ensures that all translations consistently respect the user's preferred service settings.

Summary of Changes:

  • Added free translation providers (Microsoft, Google).
  • Added translation functionality to the world description view.
  • Refactored all translation calls to use a shared, centralized function.
  • Fixed related caching logic and UI labels for consistency.

*Originally created by @gujimy on 1/11/2026* ### **Description:** This pull request introduces two main enhancements to the translation functionality, making it more accessible and robust. **1. Free, API-Key-Less Translation Services** This addresses the core issue where the translation feature was unusable without a user-provided API key. This change integrates two free translation providers: * **Microsoft Translator (Default):** Utilizes the free authentication token from Microsoft Edge's translation service. * **Google Translate:** Leverages the public Google Translate API. Now, the translation feature works out-of-the-box for all users, significantly improving accessibility. **2. World Description Translation & Code Refactoring** * **Feature:** A translation button has been added to the World Dialog, allowing users to translate world descriptions, similar to the existing user bio translation. * **Refactor:** The translation logic in both `WorldDialog.vue` and `UserDialog.vue` has been consolidated into a single, centralized `translateText` function within the `advancedSettingsStore`. This removes hardcoded API calls from components, eliminates duplicate code, and ensures that all translations consistently respect the user's preferred service settings. **Summary of Changes:** * Added free translation providers (Microsoft, Google). * Added translation functionality to the world description view. * Refactored all translation calls to use a shared, centralized function. * Fixed related caching logic and UI labels for consistency. ---
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/VRCX#137