mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-06-09 22:14:51 +00:00
Upload code
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import type {LocaleType} from '/#/config';
|
||||
|
||||
export const loadLocalePool: LocaleType[] = [];
|
||||
|
||||
export function setHtmlPageLang(locale: LocaleType) {
|
||||
document.querySelector('html')?.setAttribute('lang', locale);
|
||||
}
|
||||
|
||||
export function setLoadLocalePool(cb: (loadLocalePool: LocaleType[]) => void) {
|
||||
cb(loadLocalePool);
|
||||
}
|
||||
Reference in New Issue
Block a user