@asgardeo/react 0.5.25 → 0.5.26
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/cjs/index.js +337 -337
- package/dist/cjs/index.js.map +2 -2
- package/dist/contexts/I18n/I18nContext.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/package.json +3 -2
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { I18nBundle } from '@asgardeo/
|
|
18
|
+
import { I18nBundle } from '@asgardeo/i18n';
|
|
19
19
|
export interface I18nContextValue {
|
|
20
20
|
/**
|
|
21
21
|
* The current language code (e.g., 'en-US', 'fr-FR')
|
package/dist/index.js
CHANGED
|
@@ -894,8 +894,8 @@ var FlowProvider_default = FlowProvider;
|
|
|
894
894
|
|
|
895
895
|
// src/contexts/I18n/I18nProvider.tsx
|
|
896
896
|
import { useCallback as useCallback2, useEffect, useMemo as useMemo2, useState as useState2 } from "react";
|
|
897
|
+
import { getDefaultI18nBundles } from "@asgardeo/i18n";
|
|
897
898
|
import { deepMerge } from "@asgardeo/browser";
|
|
898
|
-
import { getI18nBundles } from "@asgardeo/browser";
|
|
899
899
|
|
|
900
900
|
// src/contexts/I18n/I18nContext.ts
|
|
901
901
|
import { createContext as createContext3 } from "react";
|
|
@@ -935,7 +935,7 @@ var I18nProvider = ({
|
|
|
935
935
|
children,
|
|
936
936
|
preferences
|
|
937
937
|
}) => {
|
|
938
|
-
const defaultBundles =
|
|
938
|
+
const defaultBundles = getDefaultI18nBundles();
|
|
939
939
|
const determineInitialLanguage = () => {
|
|
940
940
|
const configLanguage = preferences?.language;
|
|
941
941
|
const storedLanguage = getStoredLanguage();
|