@common-stack/frontend-stack-react 4.0.2-alpha.1 → 4.0.2-alpha.4
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/lib/config/redux-config.d.ts +1 -3
- package/lib/config/redux-config.js +0 -3
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -1
- package/package.json +3 -3
- package/lib/i18n-localization/i18n.d.ts +0 -6
- package/lib/i18n-localization/i18n.js +0 -9
- package/lib/i18n-localization/i18next.server.d.ts +0 -2
- package/lib/i18n-localization/i18next.server.js +0 -18
- package/lib/i18n-localization/index.d.ts +0 -2
|
@@ -9,9 +9,7 @@ interface Dependencies {
|
|
|
9
9
|
services: any;
|
|
10
10
|
container: any;
|
|
11
11
|
logger: typeof logger;
|
|
12
|
-
config
|
|
13
|
-
loadRoot: boolean;
|
|
14
|
-
};
|
|
12
|
+
config?: any;
|
|
15
13
|
}
|
|
16
14
|
export declare const epicMiddlewareFunc: (apolloClient: any, services: any, container: any) => EpicMiddleware<any, any, any, Dependencies>;
|
|
17
15
|
export declare const persistConfig: PersistConfig<any>;
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{UtilityClass,logger}from'./utils/index.js';export{createClientContainer}from'./config/client.service.js';export{createReduxStore,epicMiddlewareFunc,persistConfig}from'./config/redux-config.js';export{clientLoaderWithMiddleware}from'./tools/clientLoaderWithMiddleware.js';export{loaderWithMiddleware}from'./tools/loaderWithMiddleware.js';export{corsMiddleware}from'./backend/middlewares/cors.js';export{TYPES,containerMiddleware}from'./backend/middlewares/container.js';export{errorMiddleware}from'./backend/middlewares/error.js';export{loadContext}from'./load-context.server.js';
|
|
1
|
+
export{UtilityClass,logger}from'./utils/index.js';export{createClientContainer}from'./config/client.service.js';export{createReduxStore,epicMiddlewareFunc,persistConfig}from'./config/redux-config.js';export{clientLoaderWithMiddleware}from'./tools/clientLoaderWithMiddleware.js';export{loaderWithMiddleware}from'./tools/loaderWithMiddleware.js';export{corsMiddleware}from'./backend/middlewares/cors.js';export{TYPES,containerMiddleware}from'./backend/middlewares/container.js';export{errorMiddleware}from'./backend/middlewares/error.js';export{loadContext}from'./load-context.server.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/frontend-stack-react",
|
|
3
|
-
"version": "4.0.2-alpha.
|
|
3
|
+
"version": "4.0.2-alpha.4",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"watch": "npm run build:lib:watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@common-stack/client-react": "4.0.2-alpha.
|
|
32
|
+
"@common-stack/client-react": "4.0.2-alpha.4",
|
|
33
33
|
"@common-stack/core": "4.0.2-alpha.1",
|
|
34
34
|
"i18next-fs-backend": "^2.3.1",
|
|
35
35
|
"i18next-http-backend": "^2.5.2",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"typescript": {
|
|
53
53
|
"definition": "lib/index.d.ts"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "0bc587391ce1a1973d13d8b60557802b9ca8af43"
|
|
56
56
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var i18n = {
|
|
2
|
-
// This is the list of languages your application supports
|
|
3
|
-
supportedLngs: ["en", "es"],
|
|
4
|
-
// This is the language you want to use in case
|
|
5
|
-
// if the user language is not in the supportedLngs
|
|
6
|
-
fallbackLng: "en",
|
|
7
|
-
// The default namespace of i18next is "translation", but you can customize it here
|
|
8
|
-
defaultNS: "common",
|
|
9
|
-
};export{i18n as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import Backend from'i18next-fs-backend';import {resolve}from'node:path';import {RemixI18Next}from'remix-i18next/server';import i18n from'./i18n.js';new RemixI18Next({
|
|
2
|
-
detection: {
|
|
3
|
-
supportedLanguages: i18n.supportedLngs,
|
|
4
|
-
fallbackLanguage: i18n.fallbackLng,
|
|
5
|
-
},
|
|
6
|
-
// This is the configuration for i18next used
|
|
7
|
-
// when translating messages server-side only
|
|
8
|
-
i18next: {
|
|
9
|
-
...i18n,
|
|
10
|
-
backend: {
|
|
11
|
-
loadPath: resolve('./public/cdm-locales/{{lng}}/{{ns}}.json'),
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
// The i18next plugins you want RemixI18next to use for `i18n.getFixedT` inside loaders and actions.
|
|
15
|
-
// E.g. The Backend plugin for loading translations from the file system
|
|
16
|
-
// Tip: You could pass `resources` to the `i18next` configuration and avoid a backend here
|
|
17
|
-
plugins: [Backend],
|
|
18
|
-
});
|