@mangoweb/contember-translation-provider
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -14,1 +14,2 @@ import * as React from 'react'; | ||
export declare const useIsError: () => boolean; | ||
export declare const useCurrentLanguage: () => string; |
@@ -12,2 +12,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
isError: false, | ||
currentLanguage: '', | ||
}); | ||
@@ -76,2 +77,3 @@ const TRANSLATIONS_BASE_URL = 'https://translations-gw.mgw.cz/get'; | ||
isError, | ||
currentLanguage, | ||
} }, props.children)); | ||
@@ -84,4 +86,6 @@ }; | ||
const useIsError = () => React.useContext(ContemberTranslationContext).isError; | ||
const useCurrentLanguage = () => React.useContext(ContemberTranslationContext).currentLanguage; | ||
exports.ContemberTranslationProvider = ContemberTranslationProvider; | ||
exports.useCurrentLanguage = useCurrentLanguage; | ||
exports.useIsError = useIsError; | ||
@@ -88,0 +92,0 @@ exports.useIsLoadingAnotherLanguage = useIsLoadingAnotherLanguage; |
{ | ||
"name": "@mangoweb/contember-translation-provider", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13409
104