(language?: string)
| 72 | } |
| 73 | |
| 74 | public async setLanguage(language?: string) { |
| 75 | if (!language) language = i18next.language; |
| 76 | logger.info( |
| 77 | `${$t("TXT_CODE_daemonInfo.setLanguage")} (${this.config.ip}:${this.config.port}/${ |
| 78 | this.config.remarks |
| 79 | }) language: ${language}` |
| 80 | ); |
| 81 | return await new RemoteRequest(this).request("info/setting", { |
| 82 | language |
| 83 | }); |
| 84 | } |
| 85 | |
| 86 | // This function is used to verify the identity. It only needs to be verified once. |
| 87 | // This function will be executed automatically after the connection event is triggered. |
no test coverage detected