@tracktor/shared-module 2.2.2 → 2.3.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/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface useCurrentLanguageParams {
|
|
2
|
+
language?: string;
|
|
3
|
+
on?: (event: string, callback: (language: string) => void) => void;
|
|
4
|
+
off?: (event: string, callback: (language: string) => void) => void;
|
|
5
|
+
}
|
|
6
|
+
type LocaleType = "short" | "full";
|
|
7
|
+
/**
|
|
8
|
+
* Hook to get the current language
|
|
9
|
+
* @param i18
|
|
10
|
+
* @param localeType
|
|
11
|
+
*/
|
|
12
|
+
declare const useCurrentLanguage: (i18?: useCurrentLanguageParams, localeType?: LocaleType) => string;
|
|
13
|
+
export default useCurrentLanguage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|