Options for the new locale, including language code, metadata, and translation
resources.
Returns void
Remarks
This function mutates the i18nextLocales array and the i18next resource bundles. It does not provide
reactive updates for UI components. Therefore, new locales should be added before any rendering
occurs, as changes will not automatically propagate to already rendered components.
Throws
If a locale with the same code already exists, an exception will be thrown.
Adds a new locale to the
i18nextinstance and its metadata.