@apolitical/component-library 8.9.2-re.3 → 8.9.3-oa.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/context/intl/intl.provider.d.ts +4 -0
- package/index.js +110 -110
- package/index.mjs +2468 -2464
- package/package.json +1 -1
- package/styles/uclasses/uclasses.scss +5 -0
|
@@ -3,6 +3,8 @@ import { TLocale } from '@apolitical/contracts';
|
|
|
3
3
|
export interface IIntlContext {
|
|
4
4
|
locale?: TLocale;
|
|
5
5
|
messages?: Record<string, string>;
|
|
6
|
+
canonicalLocale?: TLocale;
|
|
7
|
+
canonicalMessages?: Record<string, string>;
|
|
6
8
|
}
|
|
7
9
|
interface Props extends IIntlContext {
|
|
8
10
|
children: React.ReactNode;
|
|
@@ -10,6 +12,8 @@ interface Props extends IIntlContext {
|
|
|
10
12
|
interface ILanguageContext {
|
|
11
13
|
language?: TLocale;
|
|
12
14
|
updateLanguage?: (lang: TLocale) => void;
|
|
15
|
+
canonicalLocale?: TLocale;
|
|
16
|
+
canonicalMessages?: Record<string, string>;
|
|
13
17
|
}
|
|
14
18
|
export declare const IntlProvider: ({ children, locale, messages }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
19
|
export declare const LanguageContext: React.Context<ILanguageContext>;
|