registerNamespace Method
Register a new Namespace. The Namespace name must be unique in the system.
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.
Parameter | Type | Description |
---|---|---|
name | string | the name of the namespace, which is the base name of the JSON file that contains the localization properties. |
Defined in
Last Updated: 08 January, 2020