Google translate bookmarklet: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
2. `location.href=` - This will redirect the browser to a new URL.
2. `location.href=` - This will redirect the browser to a new URL.


3. `'https://translate.google.com/translate?sl=auto&tl=zh-TW&u='` - This is the Google Translate URL, where:
3. `<nowiki>'https://translate.google.com/translate?sl=auto&tl=zh-TW&u='</nowiki>` - This is the Google Translate URL, where:
   - `sl=auto` means automatically detect the source language
   - `sl=auto` means automatically detect the source language
   - `tl=zh-TW` specifies the target language as Traditional Chinese. Or replace with `tl=en` to specify the target language as English
   - `tl=zh-TW` specifies the target language as Traditional Chinese. Or replace with `tl=en` to specify the target language as English
Line 28: Line 28:
# When browsing any webpage, click this bookmark to automatically translate the current page into Traditional Chinese using Google Translate
# When browsing any webpage, click this bookmark to automatically translate the current page into Traditional Chinese using Google Translate


Or use the generator: [https://translation-bookmarklet-generator.pages.dev/?lang=en Translation Bookmarklet Generator]


[[Category: Translation]]  
[[Category: Translation]]  
[[Category: Tool]]
[[Category: Tool]]
[[Category: Revised with LLMs]]
[[Category: Revised with LLMs]]

Navigation menu