touchstudy-core 0.1.61 → 0.1.62
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/components/Commons/NotFound.d.ts +4 -1
- package/dist/configs/constants.d.ts +1 -1
- package/dist/index.js +340 -200
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +341 -201
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/TheLanguageDropdown.d.ts +5 -2
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/getLanguage.d.ts +2 -0
- package/dist/utils/hooks/useLanguage.d.ts +3 -5
- package/package.json +1 -1
@@ -11,6 +11,7 @@ export declare const PUSHER_CONFIG: {
|
|
11
11
|
export declare const ACCESS_TOKEN = "ACCESS_TOKEN";
|
12
12
|
export declare const ACADEMY_DOMAIN = "ACADEMY_DOMAIN";
|
13
13
|
export declare const REDIRECT_URL = "REDIRECT_URL";
|
14
|
+
export declare const LANGUAGE = "LANGUAGE";
|
14
15
|
export declare const AcademyHeaders = "Academy-Headers";
|
15
16
|
export declare const LanguageHeaders = "Accept-Language";
|
16
17
|
export declare const DefaultErrorMessage = "an_unexpected_error_has_occurred";
|
@@ -1,12 +1,10 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { Language } from "../../configs/constants";
|
3
2
|
import "moment/locale/ko.js";
|
4
3
|
import "moment/locale/en-au.js";
|
5
|
-
declare const useLanguage: () => {
|
6
|
-
language: string;
|
4
|
+
declare const useLanguage: (history: any) => {
|
7
5
|
dropdownOpen: boolean;
|
8
|
-
currentLanguage: Language |
|
6
|
+
currentLanguage: Language | undefined;
|
9
7
|
toggle: () => void;
|
10
|
-
|
8
|
+
handleChangeItemLanguage: (lang: string) => void;
|
11
9
|
};
|
12
10
|
export default useLanguage;
|