/** @license MIT | @cube-dev/ui-kit v0.147.0 | Cube Dev Team */
import { UIKIT_I18N_NAMESPACE } from "./instance.js";
import { useTranslation } from "react-i18next";

//#region src/i18n/useI18n.ts
/**
* Internal hook every UI Kit component uses to read its own strings. It reads
* the nearest `<I18nextProvider>` so SSR can supply a request-local instance.
* Without a provider, react-i18next falls back to the initialized default UI
* Kit instance for backward compatibility.
*/
function useI18n() {
	return useTranslation(UIKIT_I18N_NAMESPACE);
}

//#endregion
export { useI18n };
//# sourceMappingURL=useI18n.js.map