Creates a fake localization capability.
Untranslated by default, which is the honest starting point: a test that asserts on English text is asserting on the source strings. Add a bundle to exercise a translated path.
const localization = createFakeLocalization('ja');localization._addBundle({ 'Hello, {0}!': 'こんにちは、{0}!' }); Copy
const localization = createFakeLocalization('ja');localization._addBundle({ 'Hello, {0}!': 'こんにちは、{0}!' });
Creates a fake localization capability.
Untranslated by default, which is the honest starting point: a test that asserts on English text is asserting on the source strings. Add a bundle to exercise a translated path.