@admin-layout/gluestack-ui-mobile 6.5.3-alpha.0 → 6.5.5-alpha.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
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.5.5-alpha.0](https://github.com/CDEBase/admin-layout/compare/v6.5.3-alpha.0...v6.5.5-alpha.0) (2024-06-21)
7
+
8
+ **Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
9
+
6
10
  ## [6.5.3-alpha.0](https://github.com/CDEBase/admin-layout/compare/v3.0.0-alpha.50...v6.5.3-alpha.0) (2024-05-29)
7
11
 
8
12
  **Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
@@ -0,0 +1,2 @@
1
+ import i18n from 'i18next';
2
+ export default i18n;
@@ -0,0 +1,19 @@
1
+ var _a;
2
+ import i18n from 'i18next';
3
+ import { initReactI18next } from 'react-i18next';
4
+ const options = {
5
+ compatibilityJSON: 'v3',
6
+ fallbackLng: 'en',
7
+ defaultNS: 'common',
8
+ debug: false,
9
+ resources: {},
10
+ lng: (_a = i18n === null || i18n === void 0 ? void 0 : i18n.language) !== null && _a !== void 0 ? _a : 'en',
11
+ interpolation: {
12
+ escapeValue: false,
13
+ },
14
+ };
15
+ i18n
16
+ .use(initReactI18next)
17
+ .init(options);
18
+ export default i18n;
19
+ //# sourceMappingURL=i18next.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18next.js","sourceRoot":"","sources":["../../src/config/i18next.ts"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,OAAO,GAAW;IACpB,iBAAiB,EAAE,IAAI;IACvB,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,QAAQ;IACnB,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,EAAE;IACb,GAAG,EAAE,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,mCAAI,IAAI;IAC3B,aAAa,EAAE;QACX,WAAW,EAAE,KAAK;KACrB;CACJ,CAAA;AAED,IAAI;KACC,GAAG,CAAC,gBAAgB,CAAC;KACrB,IAAI,CAAC,OAAO,CAAC,CAAC;AAEnB,eAAe,IAAI,CAAC"}
package/lib/index.d.ts CHANGED
@@ -4,11 +4,13 @@ import useIsReady from './hooks/useIsReady';
4
4
  import routeConfigKeyReplace from './utils/routeConfigKeyReplace';
5
5
  import LayoutFeature, { ProLayout, AppFeatures, AppLayout } from './containers/layout/module';
6
6
  import { useLayoutSetting, LayoutSettingProps } from './hooks/useLayoutSetting';
7
+ import i18next from './config/i18next';
8
+ import * as reactI18Next from 'react-i18next';
7
9
  export * from './components';
8
10
  export * from './containers/layout/Lifecycle';
9
11
  export * from '@gluestack-ui/themed';
10
12
  export * from '@gluestack-ui/config';
11
13
  export * from '@gluestack-style/react';
12
- export { useLayoutSetting, LayoutSettingProps, routeConfigKeyReplace, LayoutFeature, ProLayout, AppFeatures, AppLayout, useAfterInteractions, useIsReady, };
14
+ export { useLayoutSetting, LayoutSettingProps, routeConfigKeyReplace, LayoutFeature, ProLayout, AppFeatures, AppLayout, useAfterInteractions, useIsReady, i18next, reactI18Next, };
13
15
  declare const _default: Feature;
14
16
  export default _default;
package/lib/index.js CHANGED
@@ -7,6 +7,8 @@ import useIsReady from './hooks/useIsReady';
7
7
  import routeConfigKeyReplace from './utils/routeConfigKeyReplace';
8
8
  import LayoutFeature, { ProLayout, AppFeatures, AppLayout } from './containers/layout/module';
9
9
  import { useLayoutSetting } from './hooks/useLayoutSetting';
10
+ import i18next from './config/i18next';
11
+ import * as reactI18Next from 'react-i18next';
10
12
  export * from './components';
11
13
  export * from './containers/layout/Lifecycle';
12
14
  //...........................glustack-ui library....///
@@ -14,7 +16,7 @@ export * from '@gluestack-ui/themed';
14
16
  export * from '@gluestack-ui/config';
15
17
  export * from '@gluestack-style/react';
16
18
  //............................gluestack-ui....///
17
- export { useLayoutSetting, routeConfigKeyReplace, LayoutFeature, ProLayout, AppFeatures, AppLayout, useAfterInteractions, useIsReady, };
19
+ export { useLayoutSetting, routeConfigKeyReplace, LayoutFeature, ProLayout, AppFeatures, AppLayout, useAfterInteractions, useIsReady, i18next, reactI18Next, };
18
20
  export default new Feature({
19
21
  reducer: { settings: settingsReducer, applicationErrors },
20
22
  clientStateParams: {
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAClE,OAAO,aAAa,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAsB,MAAM,0BAA0B,CAAC;AAGhF,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAE9C,uDAAuD;AACvD,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,iDAAiD;AAGjD,OAAO,EACH,gBAAgB,EAEhB,qBAAqB,EACrB,aAAa,EACb,SAAS,EACT,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,UAAU,GACb,CAAC;AAEF,eAAe,IAAI,OAAO,CAAC;IACvB,OAAO,EAAE,E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,6 @@
1
1
  {
2
2
  "name": "@admin-layout/gluestack-ui-mobile",
3
- "version": "6.5.3-alpha.0",
3
+ "version": "6.5.5-alpha.0",
4
4
  "description": "Glustack-ui for mobile component layout",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -29,12 +29,13 @@
29
29
  "@gluestack-ui/config": "^1.1.18",
30
30
  "@gluestack-ui/themed": "^1.1.22",
31
31
  "hoist-non-react-statics": "^3.3.2",
32
- "react-native-svg": "13.9.0",
33
- "react-native-toast-message": "^2.1.5"
32
+ "i18next": "^23.10.1",
33
+ "react-i18next": "^14.1.0",
34
+ "react-native-svg": "13.9.0"
34
35
  },
35
36
  "typings": "lib/index.d.ts",
36
37
  "typescript": {
37
38
  "definition": "lib/index.d.ts"
38
39
  },
39
- "gitHead": "18cde457f07a9dbd2a05ab81cc3b336e1ce33446"
40
+ "gitHead": "8b642b82075720d0ae2893c0e6fa26ed9f62dd64"
40
41
  }
@@ -0,0 +1,20 @@
1
+ import i18n from 'i18next';
2
+ import { initReactI18next } from 'react-i18next';
3
+
4
+ const options:object = {
5
+ compatibilityJSON: 'v3',
6
+ fallbackLng: 'en',
7
+ defaultNS: 'common',
8
+ debug: false,
9
+ resources: {},
10
+ lng: i18n?.language ?? 'en', // default language to use.
11
+ interpolation: {
12
+ escapeValue: false,
13
+ },
14
+ }
15
+
16
+ i18n
17
+ .use(initReactI18next)
18
+ .init(options);
19
+
20
+ export default i18n;
package/src/index.ts CHANGED
@@ -7,6 +7,8 @@ import useIsReady from './hooks/useIsReady';
7
7
  import routeConfigKeyReplace from './utils/routeConfigKeyReplace';
8
8
  import LayoutFeature, { ProLayout, AppFeatures, AppLayout } from './containers/layout/module';
9
9
  import { useLayoutSetting, LayoutSettingProps } from './hooks/useLayoutSetting';
10
+ import i18next from './config/i18next';
11
+ import * as reactI18Next from 'react-i18next';
10
12
 
11
13
 
12
14
  export * from './components';
@@ -29,6 +31,8 @@ export {
29
31
  AppLayout,
30
32
  useAfterInteractions,
31
33
  useIsReady,
34
+ i18next,
35
+ reactI18Next,
32
36
  };
33
37
 
34
38
  export default new Feature({