We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5874a4d commit 7a104acCopy full SHA for 7a104ac
1 file changed
src/translator.ts
@@ -12,8 +12,8 @@ class Translator implements ITranslator{
12
13
adapter: Adapter;
14
15
- constructor(key: string, secret: string, platform: string = 'Youdao') {
16
- this.adapter = new Adapters[platform](key, secret, platform);
+ constructor(key: string, secret: string, platform: string) {
+ this.adapter = new Adapters[platform](key, secret);
17
}
18
19
public async translate(query: string): Promise<any> {
0 commit comments