()
| 1413 | */ |
| 1414 | static define(): typeof UI5Element { |
| 1415 | const defineSequence = async () => { |
| 1416 | await boot(); // boot must finish first, because it initializes configuration |
| 1417 | const result = await Promise.all([ |
| 1418 | this.fetchI18nBundles(), // uses configuration |
| 1419 | this.fetchCLDR(), |
| 1420 | this.onDefine(), |
| 1421 | ]); |
| 1422 | const [i18nBundles] = result; |
| 1423 | Object.entries(this.getMetadata().getI18n()).forEach((pair, index) => { |
| 1424 | const bundleName = pair[1].bundleName; |
| 1425 | this.i18nBundleStorage[bundleName] = i18nBundles[index]; |
| 1426 | }); |
| 1427 | this.asyncFinished = true; |
| 1428 | }; |
| 1429 | this._definePromise = defineSequence(); |
| 1430 | |
| 1431 | const tag = this.getMetadata().getTag(); |
no test coverage detected
searching dependent graphs…