@evlmaistrenko/tools-antd
    Preparing search index...

    Function addI18nextLocale

    • Adds a new locale to the i18next instance and its metadata.

      Parameters

      • options: AddI18nextOptions

        Options for the new locale, including language code, metadata, and translation resources.

      Returns void

      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.

      If a locale with the same code already exists, an exception will be thrown.