MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / setLanguage

Method setLanguage

src/pkg/config/config.ts:418–423  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

416 }
417
418 setLanguage(value: string) {
419 this._set("language", value);
420 if (globalThis.localStorage) {
421 localStorage.setItem("language", value);
422 }
423 }
424
425 setCheckUpdate(data: { notice: string; version: string; isRead: boolean }) {
426 this._set("check_update", {

Callers 2

MainLayoutFunction · 0.80
config.test.tsFile · 0.80

Calls 1

_setMethod · 0.95

Tested by

no test coverage detected