UNPKG

@hhgtech/hhg-components

Version:
25 lines (24 loc) 1.05 kB
import React from 'react'; import { TranslationValues } from "./translationsContext"; import { LocaleType } from "../interfaces/types"; export type TranslationLocaleType = LocaleType | 'vi-VN_MB'; export type TranslationsMap = { [locale in TranslationLocaleType]?: TranslationValues; }; export declare const translationsMap: TranslationsMap; export type TranslationsOverridesType = { [k in TranslationLocaleType]: TranslationValues; }; export type TranslationsProviderProps = { children: unknown; locale?: TranslationLocaleType; overrides?: TranslationsOverridesType; overrideCurrentLocale?: TranslationValues; shouldLoadTranslation?: boolean; loader?: unknown; onTranslationsLoaded?: (values: TranslationValues) => void; }; /** * @deprecated Consider to use TranslationsProviderV2 */ export declare const TranslationsProvider: ({ locale, overrides, overrideCurrentLocale, children, shouldLoadTranslation, loader, onTranslationsLoaded, }: TranslationsProviderProps) => React.JSX.Element;