@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.
- package/dist/hooks/useTheme.d.ts +2 -1
- package/dist/hooks/useTranslation.d.ts +7 -0
- package/dist/index.cjs +19 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +811 -822
- package/dist/index.js.map +1 -1
- package/dist/translation/{es.locale.d.ts → ar.d.ts} +1 -1
- package/dist/translation/{ar.locale.d.ts → de.d.ts} +1 -1
- package/dist/translation/{de.locale.d.ts → en.d.ts} +1 -1
- package/dist/translation/{en.locale.d.ts → es.d.ts} +1 -1
- package/dist/translation/fr.d.ts +2 -0
- package/dist/translation/index.d.ts +5 -5
- package/dist/translation/nl.d.ts +2 -0
- package/dist/translation/pt.d.ts +2 -0
- package/dist/translation/tr.d.ts +2 -0
- package/dist-embed/script.js +38 -38
- package/dist-embed/script.js.map +1 -1
- package/package.json +3 -3
- package/dist/hooks/useLocale.d.ts +0 -6
- package/dist/translation/fr.locale.d.ts +0 -2
- package/dist/translation/nl.locale.d.ts +0 -2
- package/dist/translation/pt.locale.d.ts +0 -2
- package/dist/translation/tr.locale.d.ts +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TranslationInterface } from './translation.types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const arLanguage: TranslationInterface;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TranslationInterface } from './translation.types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const deLanguage: TranslationInterface;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TranslationInterface } from './translation.types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const enLanguage: TranslationInterface;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TranslationInterface } from './translation.types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const esLanguage: TranslationInterface;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TranslationKeysU } from './translation.types';
|
|
2
|
-
declare const
|
|
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
|
|
13
|
-
export type
|
|
14
|
-
export declare
|
|
15
|
-
export declare function getTranslation(key: TranslationKeysU, lang:
|
|
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 {};
|