MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / loadAllModules

Method loadAllModules

dashboard/src/i18n/loader.ts:182–194  ·  view source on GitHub ↗

* 加载所有模块

(locale: string)

Source from the content-addressed store, hash-verified

180 * 加载所有模块
181 */
182 async loadAllModules(locale: string): Promise<any> {
183 const [core, features, messages] = await Promise.all([
184 this.loadCoreModules(locale),
185 this.loadFeatureModules(locale),
186 this.loadMessageModules(locale)
187 ]);
188
189 return {
190 ...core,
191 ...features,
192 ...messages
193 };
194 }
195
196 /**
197 * 加载完整语言包(所有模块合并)

Callers 1

loadLocaleMethod · 0.95

Calls 4

loadCoreModulesMethod · 0.95
loadFeatureModulesMethod · 0.95
loadMessageModulesMethod · 0.95
allMethod · 0.80

Tested by

no test coverage detected