MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / setLanguage

Method setLanguage

panel/src/app/entity/remote_service.ts:74–84  ·  view source on GitHub ↗
(language?: string)

Source from the content-addressed store, hash-verified

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.

Callers 2

authMethod · 0.95
changeDaemonLanguageMethod · 0.80

Calls 3

$tFunction · 0.90
infoMethod · 0.80
requestMethod · 0.80

Tested by

no test coverage detected