import type { Locale } from "../types/core"; export interface UseI18nProps { /** Locale code from where get the translation. This locale override the current page language */ locale?: Locale; } /** * returns functions to get the translations from the context taking into * account the language (locale) of the current page. * @see [Documentación](https://www.notion.so/griddoio/useI18n-021b08689dcf4abd8f666da7b7646611) * * @example * const { getTraslation, getNestedTranslation } = useI18n() * const foo = getTranslation("submitButtonLabel") * const bar = getNestedTranslation("modules.backLabel") */ declare function useI18n(props?: UseI18nProps): { getTranslation: (key: string, defaultString?: string) => T; getNestedTranslation: (key: string, defaultString?: string) => T; }; export { useI18n };