MCPcopy Create free account
hub / github.com/UI5/webcomponents / getI18nBundleSync

Function getI18nBundleSync

packages/base/src/i18nBundle.ts:59–67  ·  view source on GitHub ↗
(packageName: string)

Source from the content-addressed store, hash-verified

57 * @param packageName
58 */
59const getI18nBundleSync = (packageName: string): I18nBundle => {
60 if (I18nBundleInstances.has(packageName)) {
61 return I18nBundleInstances.get(packageName)!;
62 }
63
64 const i18nBundle = new I18nBundle(packageName);
65 I18nBundleInstances.set(packageName, i18nBundle);
66 return i18nBundle;
67};
68
69/**
70 * Fetches and returns the I18nBundle instance for the given package.

Callers 1

getI18nBundleFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…