MCPcopy
hub / github.com/AstrBotDevs/AstrBot / preloadEssentials

Method preloadEssentials

dashboard/src/i18n/loader.ts:245–255  ·  view source on GitHub ↗

* 预加载关键模块

(locale: string)

Source from the content-addressed store, hash-verified

243 * 预加载关键模块
244 */
245 async preloadEssentials(locale: string): Promise<void> {
246 const essentials = [
247 'core/common',
248 'core/navigation',
249 'features/chat'
250 ];
251
252 await Promise.all(
253 essentials.map(module => this.loadModule(locale, module))
254 );
255 }
256
257 /**
258 * 清理缓存

Callers

nothing calls this directly

Calls 2

loadModuleMethod · 0.95
allMethod · 0.80

Tested by

no test coverage detected