@opencx/widget-react 4.0.1 → 4.0.3

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,2 +1,2 @@
1
1
  import { TranslationInterface } from './translation.types';
2
- export declare const esLocale: TranslationInterface;
2
+ export declare const arLanguage: TranslationInterface;
@@ -1,2 +1,2 @@
1
1
  import { TranslationInterface } from './translation.types';
2
- export declare const arLocale: TranslationInterface;
2
+ export declare const deLanguage: TranslationInterface;
@@ -1,2 +1,2 @@
1
1
  import { TranslationInterface } from './translation.types';
2
- export declare const deLocale: TranslationInterface;
2
+ export declare const enLanguage: TranslationInterface;
@@ -1,2 +1,2 @@
1
1
  import { TranslationInterface } from './translation.types';
2
- export declare const enLocale: TranslationInterface;
2
+ export declare const esLanguage: TranslationInterface;
@@ -0,0 +1,2 @@
1
+ import { TranslationInterface } from './translation.types';
2
+ export declare const frLanguage: TranslationInterface;
@@ -1,5 +1,5 @@
1
1
  import { TranslationKeysU } from './translation.types';
2
- declare const locales: {
2
+ declare const languages: {
3
3
  readonly en: import('./translation.types').TranslationInterface;
4
4
  readonly ar: import('./translation.types').TranslationInterface;
5
5
  readonly nl: import('./translation.types').TranslationInterface;
@@ -9,8 +9,8 @@ declare const locales: {
9
9
  readonly es: import('./translation.types').TranslationInterface;
10
10
  readonly tr: import('./translation.types').TranslationInterface;
11
11
  };
12
- export declare const LOCALES: (keyof typeof locales)[];
13
- export type Locale = (typeof LOCALES)[number];
14
- export declare const isSupportedLocale: (lang: string | null | undefined) => lang is Locale;
15
- export declare function getTranslation(key: TranslationKeysU, lang: Locale): string;
12
+ export declare const LANGUAGES: (keyof typeof languages)[];
13
+ export type Language = (typeof LANGUAGES)[number];
14
+ export declare function isSupportedLanguage(lang: string | null | undefined): lang is Language;
15
+ export declare function getTranslation(key: TranslationKeysU, lang: Language): string;
16
16
  export {};
@@ -0,0 +1,2 @@
1
+ import { TranslationInterface } from './translation.types';
2
+ export declare const nlLanguage: TranslationInterface;
@@ -0,0 +1,2 @@
1
+ import { TranslationInterface } from './translation.types';
2
+ export declare const ptLanguage: TranslationInterface;
@@ -0,0 +1,2 @@
1
+ import { TranslationInterface } from './translation.types';
2
+ export declare const trLanguage: TranslationInterface;