API Reference > imodeljs-I18N > Localization > I18N > registerNamespace registerNamespace Method Register a new Namespace and return it. If the namespace is already registered, it will be returned. registerNamespace(name: string): I18NNamespace note - The registerNamespace method starts fetching the appropriate version of the JSON localization file from the server, based on the current locale. To make sure that fetch is complete before performing translations from this namespace, await fulfillment of the readPromise Promise property of the returned I18NNamespace. see Localization in iModel.js Parameter Type Description name string the name of the namespace, which is the base name of the JSON file that contains the localization properties. Returns - I18NNamespace Defined in Localization.ts Line 181 Last Updated: 11 June, 2024