File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
Google Translate.lbaction/Contents/Scripts Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 11// LaunchBar Action Script
22
33function run ( ) {
4- LaunchBar . openURL ( 'https://translate.google.com ' )
4+ LaunchBar . openURL ( 'https://translate.google.cn ' )
55}
66
7- function runWithString ( argument )
8- {
9- var url = 'https://translate.google.com/#auto/zh-CN/'
10- if ( LaunchBar . options . commandKey ) {
11- url = 'https://translate.google.com/#auto/en/'
12- }
7+ function runWithString ( argument ) {
8+ var url = 'https://translate.google.cn/#auto/zh-CN/'
9+ if ( LaunchBar . options . commandKey ) {
10+ url = 'https://translate.google.cn/#auto/en/'
11+ }
1312
14- LaunchBar . openURL ( url + encodeURIComponent ( argument ) ) ;
13+ LaunchBar . openURL ( url + encodeURIComponent ( argument ) ) ;
1514}
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ function runWithString(argument) {
33 var sourceLang = 'auto'
44 var targetLang = 'zh-CN'
55 if ( ! / [ a - z A - Z ] / . test ( argument ) ) {
6- sourceLang = 'auto'
76 targetLang = 'en'
87 }
98 // dt 跟 ie 参数很重要
You can’t perform that action at this time.
0 commit comments