Skip to content

Commit 1b9404c

Browse files
committed
fix: remove unused GOOGLE_TOKEN
1 parent 8f71f3a commit 1b9404c

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

.env.example

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ BAIDU_KEY=
55
# https://fanyi.caiyunapp.com/#/api
66
CAIYUN_TOKEN=
77

8-
# https://cloud.google.com/translate/
9-
GOOGLE_TOKEN=
10-
118
# https://deepi.sogou.com/?from=translatepc
129
SOGOU_PID=
1310
SOGOU_KEY=

src/components/dictionaries/google/engine.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export const search: SearchFunction<
4242

4343
try {
4444
const result = await translator.translate(text, sl, tl, {
45-
token: process.env.GOOGLE_TOKEN || '',
4645
concurrent: options.concurrent,
4746
apiAsFallback: true,
4847
order: ['cn', 'com']

0 commit comments

Comments
 (0)