@apolitical/component-library 8.3.29 → 8.3.30

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.
@@ -1,24 +1,16 @@
1
1
  import React from 'react';
2
- export type LanguageType = keyof typeof supportedLanguages;
2
+ import { TLocale } from '@apolitical/contracts';
3
3
  export interface IIntlContext {
4
- locale?: LanguageType;
4
+ locale?: TLocale;
5
5
  messages?: Record<string, string>;
6
6
  }
7
7
  interface Props extends IIntlContext {
8
8
  children: React.ReactNode;
9
9
  }
10
10
  interface ILanguageContext {
11
- language?: LanguageType;
12
- updateLanguage?: (lang: string) => void;
11
+ language?: TLocale;
12
+ updateLanguage?: (lang: TLocale) => void;
13
13
  }
14
14
  export declare const IntlProvider: ({ children, locale, messages }: Props) => import("react/jsx-runtime").JSX.Element;
15
15
  export declare const LanguageContext: React.Context<ILanguageContext>;
16
- export declare const supportedLanguages: {
17
- en: string;
18
- es: string;
19
- fr: string;
20
- pt: string;
21
- id: string;
22
- 'pt-BR': string;
23
- };
24
16
  export {};
@@ -20,12 +20,7 @@ export declare const courseDiscussionActivitySectionMock: {
20
20
  };
21
21
  categories: never[];
22
22
  content: {
23
- en: string;
24
- es: string;
25
- fr: string;
26
- pt: string;
27
- id: string;
28
- 'pt-BR': string;
23
+ [k: string]: string;
29
24
  };
30
25
  feed_id: string;
31
26
  foreign_id: string;