zooo-code opened a new pull request, #429:
URL: https://github.com/apache/seatunnel-website/pull/429
## Description
Fixes Google Translate functionality for Japanese, Korean, French, Spanish,
Russian, and German languages.
## Changes
- Add Google Translate widget integration
- Fix language dropdown to display selected language correctly
- Protect "Apache SeaTunnel" brand name from translation
- Auto-redirect from /zh-CN/ pages when selecting Google Translate
## Testing
- Select a Google Translate language
- Page content translates correctly
- Navigate between pages - translation persists\
- Brand name "Apache SeaTunnel" remains untranslated
- Dropdown shows correct selected language with active highlighting
### Files Changed
- `docusaurus.config.js`: Added Google Translate scripts.
- `src/css/custom.css`: Hide Google Translate UI elements.
- `src/pages/home/index.jsx`: Protect brand name on homepage.
- `src/theme/NavbarItem/LocaleDropdownNavbarItem/index.js`: Language
dropdown integration.
- `static/js/google_translate_init.js`: Google Translate initialization.
- `src/theme/Logo/index.js`: Swizzled to protect navbar brand name.
- `src/theme/Navbar/Logo/index.js`: Swizzled wrapper component.
Fixes apache/seatunnel#10462
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]