* 加载所有模块
(locale: string)
| 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 | * 加载完整语言包(所有模块合并) |
no test coverage detected