Google translate bookmarklet: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
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

Navigation menu