express-intlayer 5.3.10 → 5.3.12
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.cjs +12 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs +12 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/index.d.ts +4 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +12 -12
package/dist/cjs/index.cjs
CHANGED
|
@@ -18,6 +18,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var index_exports = {};
|
|
20
20
|
__export(index_exports, {
|
|
21
|
+
getDictionary: () => getDictionary,
|
|
22
|
+
getIntlayer: () => getIntlayer,
|
|
21
23
|
intlayer: () => intlayer,
|
|
22
24
|
t: () => t,
|
|
23
25
|
translateFunction: () => translateFunction
|
|
@@ -73,15 +75,25 @@ const intlayer = () => (req, res, next) => {
|
|
|
73
75
|
res.locals.locale = localeCookie ?? localeHeader ?? localeDetected;
|
|
74
76
|
res.locals.defaultLocale = internationalization.defaultLocale;
|
|
75
77
|
const t2 = translateFunction(req, res, next);
|
|
78
|
+
const getIntlayer2 = (key, localeArg = localeDetected, ...props) => (0, import_core.getIntlayer)(key, localeArg, ...props);
|
|
79
|
+
const getDictionary2 = (key, localeArg = localeDetected, ...props) => (0, import_core.getDictionary)(key, localeArg, ...props);
|
|
76
80
|
res.locals.t = t2;
|
|
81
|
+
res.locals.getIntlayer = getIntlayer2;
|
|
82
|
+
res.locals.getDictionary = getDictionary2;
|
|
77
83
|
appNamespace.run(() => {
|
|
78
84
|
appNamespace.set("t", t2);
|
|
85
|
+
appNamespace.set("getIntlayer", getIntlayer2);
|
|
86
|
+
appNamespace.set("getDictionary", getDictionary2);
|
|
79
87
|
next();
|
|
80
88
|
});
|
|
81
89
|
};
|
|
82
90
|
const t = (content, locale) => appNamespace.get("t")(content, locale);
|
|
91
|
+
const getIntlayer = (...args) => appNamespace.get("getIntlayer")(...args);
|
|
92
|
+
const getDictionary = (...args) => appNamespace.get("getDictionary")(...args);
|
|
83
93
|
// Annotate the CommonJS export names for ESM import in node:
|
|
84
94
|
0 && (module.exports = {
|
|
95
|
+
getDictionary,
|
|
96
|
+
getIntlayer,
|
|
85
97
|
intlayer,
|
|
86
98
|
t,
|
|
87
99
|
translateFunction
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { createModuleAugmentation } from '@intlayer/chokidar';\nimport { type Locales
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { createModuleAugmentation } from '@intlayer/chokidar';\nimport { getConfiguration, type Locales } from '@intlayer/config';\nimport {\n getDictionary as getDictionaryFunction,\n getIntlayer as getIntlayerFunction,\n getTranslation,\n localeDetector,\n type LanguageContent,\n} from '@intlayer/core';\nimport { createNamespace } from 'cls-hooked';\nimport type { NextFunction, Request, RequestHandler, Response } from 'express';\n\nconst { middleware, internationalization } = getConfiguration({\n verbose: true,\n});\nconst { headerName, cookieName } = middleware;\n\nconst appNamespace = createNamespace('app');\n\ncreateModuleAugmentation();\n\nexport const translateFunction =\n (_req: Request, res: Response, _next?: NextFunction) =>\n <T extends string>(\n content: LanguageContent<T> | string,\n locale?: Locales\n ): T => {\n const { locale: currentLocale, defaultLocale } = res.locals as {\n locale: Locales;\n defaultLocale: Locales;\n };\n\n const targetLocale = locale ?? currentLocale;\n\n if (typeof content === 'undefined') {\n return '' as unknown as T;\n }\n\n if (typeof content === 'string') {\n return content as unknown as T;\n }\n\n if (\n typeof content?.[targetLocale as unknown as keyof LanguageContent<T>] ===\n 'undefined'\n ) {\n if (\n typeof content?.[\n defaultLocale as unknown as keyof LanguageContent<T>\n ] === 'undefined'\n ) {\n return content as unknown as T;\n } else {\n return getTranslation(content, defaultLocale);\n }\n }\n\n return getTranslation(content, targetLocale);\n };\n\n/**\n * Detect locale used by the user and load it into res locale storage\n *\n * @returns\n */\nexport const intlayer = (): RequestHandler => (req, res, next) => {\n // Detect if locale is set by intlayer frontend lib in the cookies\n const localeCookie = req.cookies?.[cookieName];\n // Detect if locale is set by intlayer frontend lib in the headers\n const localeHeader = req.headers?.[headerName];\n // Interpret browser locale\n\n const negotiatorHeaders: Record<string, string> = {};\n\n // // Check if req.headers exists and is an object\n if (req && typeof req.headers === 'object') {\n // Copy all headers from the request to negotiatorHeaders\n for (const key in req.headers) {\n if (typeof req.headers[key] === 'string') {\n negotiatorHeaders[key] = req.headers[key];\n }\n }\n }\n\n const localeDetected = localeDetector(\n negotiatorHeaders,\n internationalization.locales,\n internationalization.defaultLocale\n );\n\n res.locals.locale_header = localeHeader;\n res.locals.locale_cookie = localeCookie;\n res.locals.locale_detected = localeDetected;\n res.locals.locale = localeCookie ?? localeHeader ?? localeDetected;\n res.locals.defaultLocale = internationalization.defaultLocale;\n\n const t = translateFunction(req, res, next);\n\n const getIntlayer: typeof getIntlayerFunction = (\n key,\n localeArg = localeDetected as Parameters<typeof getIntlayerFunction>[1],\n ...props\n ) => getIntlayerFunction(key, localeArg, ...props);\n\n const getDictionary: typeof getDictionaryFunction = (\n key,\n localeArg = localeDetected as Parameters<typeof getDictionaryFunction>[1],\n ...props\n ) => getDictionaryFunction(key, localeArg, ...props);\n\n res.locals.t = t;\n res.locals.getIntlayer = getIntlayer;\n res.locals.getDictionary = getDictionary;\n\n appNamespace.run(() => {\n appNamespace.set('t', t);\n appNamespace.set('getIntlayer', getIntlayer);\n appNamespace.set('getDictionary', getDictionary);\n\n next();\n });\n};\n\nexport const t = <Content = string>(\n content: LanguageContent<Content>,\n locale?: Locales\n): Content => appNamespace.get('t')(content, locale);\n\nexport const getIntlayer: typeof getIntlayerFunction = (...args) =>\n appNamespace.get('getIntlayer')(...args);\nexport const getDictionary: typeof getDictionaryFunction = (...args) =>\n appNamespace.get('getDict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AO,gBAAgB;AAC3B,MAAI,OAAO,gBAAgB;AAC3B,MAAI,OAAO,kBAAkB;AAC7B,MAAI,OAAO,SAAS,gBAAgB,gBAAgB;AACpD,MAAI,OAAO,gBAAgB,qBAAqB;AAEhD,QAAMA,KAAI,kBAAkB,KAAK,KAAK,IAAI;AAE1C,QAAMC,eAA0C,CAC9C,KACA,YAAY,mBACT,cACA,YAAAC,aAAoB,KAAK,WAAW,GAAG,KAAK;AAEjD,QAAMC,iBAA8C,CAClD,KACA,YAAY,mBACT,cACA,YAAAC,eAAsB,KAAK,WAAW,GAAG,KAAK;AAEnD,MAAI,OAAO,IAAIJ;AACf,MAAI,OAAO,cAAcC;AACzB,MAAI,OAAO,gBAAgBE;AAE3B,eAAa,IAAI,MAAM;AACrB,iBAAa,IAAI,KAAKH,EAAC;AACvB,iBAAa,IAAI,eAAeC,YAAW;AAC3C,iBAAa,IAAI,iBAAiBE,cAAa;AAE/C,SAAK;AAAA,EACP,CAAC;AACH;AAEO,MAAM,IAAI,CACf,SACA,WACY,aAAa,IAAI,GAAG,EAAE,SAAS,MAAM;AAE5C,MAAM,cAA0C,IAAI,SACzD,aAAa,IAAI,aAAa,EAAE,GAAG,IAAI;AAClC,MAAM,gBAA8C,IAAI,SAC7D,aAAa,IAAI,eAAe,EAAE,GAAG,IAAI;","names":["t","getIntlayer","getIntlayerFunction","getDictionary","getDictionaryFunction"]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { createModuleAugmentation } from "@intlayer/chokidar";
|
|
2
2
|
import { getConfiguration } from "@intlayer/config";
|
|
3
3
|
import {
|
|
4
|
+
getDictionary as getDictionaryFunction,
|
|
5
|
+
getIntlayer as getIntlayerFunction,
|
|
4
6
|
getTranslation,
|
|
5
7
|
localeDetector
|
|
6
8
|
} from "@intlayer/core";
|
|
@@ -51,14 +53,24 @@ const intlayer = () => (req, res, next) => {
|
|
|
51
53
|
res.locals.locale = localeCookie ?? localeHeader ?? localeDetected;
|
|
52
54
|
res.locals.defaultLocale = internationalization.defaultLocale;
|
|
53
55
|
const t2 = translateFunction(req, res, next);
|
|
56
|
+
const getIntlayer2 = (key, localeArg = localeDetected, ...props) => getIntlayerFunction(key, localeArg, ...props);
|
|
57
|
+
const getDictionary2 = (key, localeArg = localeDetected, ...props) => getDictionaryFunction(key, localeArg, ...props);
|
|
54
58
|
res.locals.t = t2;
|
|
59
|
+
res.locals.getIntlayer = getIntlayer2;
|
|
60
|
+
res.locals.getDictionary = getDictionary2;
|
|
55
61
|
appNamespace.run(() => {
|
|
56
62
|
appNamespace.set("t", t2);
|
|
63
|
+
appNamespace.set("getIntlayer", getIntlayer2);
|
|
64
|
+
appNamespace.set("getDictionary", getDictionary2);
|
|
57
65
|
next();
|
|
58
66
|
});
|
|
59
67
|
};
|
|
60
68
|
const t = (content, locale) => appNamespace.get("t")(content, locale);
|
|
69
|
+
const getIntlayer = (...args) => appNamespace.get("getIntlayer")(...args);
|
|
70
|
+
const getDictionary = (...args) => appNamespace.get("getDictionary")(...args);
|
|
61
71
|
export {
|
|
72
|
+
getDictionary,
|
|
73
|
+
getIntlayer,
|
|
62
74
|
intlayer,
|
|
63
75
|
t,
|
|
64
76
|
translateFunction
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { createModuleAugmentation } from '@intlayer/chokidar';\nimport { type Locales
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { createModuleAugmentation } from '@intlayer/chokidar';\nimport { getConfiguration, type Locales } from '@intlayer/config';\nimport {\n getDictionary as getDictionaryFunction,\n getIntlayer as getIntlayerFunction,\n getTranslation,\n localeDetector,\n type LanguageContent,\n} from '@intlayer/core';\nimport { createNamespace } from 'cls-hooked';\nimport type { NextFunction, Request, RequestHandler, Response } from 'express';\n\nconst { middleware, internationalization } = getConfiguration({\n verbose: true,\n});\nconst { headerName, cookieName } = middleware;\n\nconst appNamespace = createNamespace('app');\n\ncreateModuleAugmentation();\n\nexport const translateFunction =\n (_req: Request, res: Response, _next?: NextFunction) =>\n <T extends string>(\n content: LanguageContent<T> | string,\n locale?: Locales\n ): T => {\n const { locale: currentLocale, defaultLocale } = res.locals as {\n locale: Locales;\n defaultLocale: Locales;\n };\n\n const targetLocale = locale ?? currentLocale;\n\n if (typeof content === 'undefined') {\n return '' as unknown as T;\n }\n\n if (typeof content === 'string') {\n return content as unknown as T;\n }\n\n if (\n typeof content?.[targetLocale as unknown as keyof LanguageContent<T>] ===\n 'undefined'\n ) {\n if (\n typeof content?.[\n defaultLocale as unknown as keyof LanguageContent<T>\n ] === 'undefined'\n ) {\n return content as unknown as T;\n } else {\n return getTranslation(content, defaultLocale);\n }\n }\n\n return getTranslation(content, targetLocale);\n };\n\n/**\n * Detect locale used by the user and load it into res locale storage\n *\n * @returns\n */\nexport const intlayer = (): RequestHandler => (req, res, next) => {\n // Detect if locale is set by intlayer frontend lib in the cookies\n const localeCookie = req.cookies?.[cookieName];\n // Detect if locale is set by intlayer frontend lib in the headers\n const localeHeader = req.headers?.[headerName];\n // Interpret browser locale\n\n const negotiatorHeaders: Record<string, string> = {};\n\n // // Check if req.headers exists and is an object\n if (req && typeof req.headers === 'object') {\n // Copy all headers from the request to negotiatorHeaders\n for (const key in req.headers) {\n if (typeof req.headers[key] === 'string') {\n negotiatorHeaders[key] = req.headers[key];\n }\n }\n }\n\n const localeDetected = localeDetector(\n negotiatorHeaders,\n internationalization.locales,\n internationalization.defaultLocale\n );\n\n res.locals.locale_header = localeHeader;\n res.locals.locale_cookie = localeCookie;\n res.locals.locale_detected = localeDetected;\n res.locals.locale = localeCookie ?? localeHeader ?? localeDetected;\n res.locals.defaultLocale = internationalization.defaultLocale;\n\n const t = translateFunction(req, res, next);\n\n const getIntlayer: typeof getIntlayerFunction = (\n key,\n localeArg = localeDetected as Parameters<typeof getIntlayerFunction>[1],\n ...props\n ) => getIntlayerFunction(key, localeArg, ...props);\n\n const getDictionary: typeof getDictionaryFunction = (\n key,\n localeArg = localeDetected as Parameters<typeof getDictionaryFunction>[1],\n ...props\n ) => getDictionaryFunction(key, localeArg, ...props);\n\n res.locals.t = t;\n res.locals.getIntlayer = getIntlayer;\n res.locals.getDictionary = getDictionary;\n\n appNamespace.run(() => {\n appNamespace.set('t', t);\n appNamespace.set('getIntlayer', getIntlayer);\n appNamespace.set('getDictionary', getDictionary);\n\n next();\n });\n};\n\nexport const t = <Content = string>(\n content: LanguageContent<Content>,\n locale?: Locales\n): Content => appNamespace.get('t')(content, locale);\n\nexport const getIntlayer: typeof getIntlayerFunction = (...args) =>\n appNamespace.get('getIntlayer')(...args);\nexport const getDictionary: typeof getDictionaryFunction = (...args) =>\n appNamespace.get('getDictionary')(...args);\n\nexport { LanguageContent };\n"],"mappings":"AAAA,SAAS,gCAAgC;AACzC,SAAS,wBAAsC;AAC/C;AAAA,EACE,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf;AAAA,EACA;AAAA,OAEK;AACP,SAAS,uBAAuB;AAGhC,MAAM,EAAE,YAAY,qBAAqB,IAAI,iBAAiB;AAAA,EAC5D,SAAS;AACX,CAAC;AACD,MAAM,EAAE,YAAY,WAAW,IAAI;AAEnC,MAAM,eAAe,gBAAgB,KAAK;AAE1C,yBAAyB;AAElB,MAAM,oBACX,CAAC,MAAe,KAAe,UAC/B,CACE,SACA,WACM;AACN,QAAM,EAAE,QAAQ,eAAe,cAAc,IAAI,IAAI;AAKrD,QAAM,eAAe,UAAU;AAE/B,MAAI,OAAO,YAAY,aAAa;AAClC,WAAO;AAAA,EACT;AAEA,MAAI,OAAO,YAAY,UAAU;AAC/B,WAAO;AAAA,EACT;AAEA,MACE,OAAO,UAAU,YAAmD,MACpE,aACA;AACA,QACE,OAAO,UACL,aACF,MAAM,aACN;AACA,aAAO;AAAA,IACT,OAAO;AACL,aAAO,eAAe,SAAS,aAAa;AAAA,IAC9C;AAAA,EACF;AAEA,SAAO,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8C,IAAI,SAC7D,aAAa,IAAI,eAAe,EAAE,GAAG,IAAI;","names":["t","getIntlayer","getDictionary"]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Locales } from '@intlayer/config';
|
|
2
|
-
import { type LanguageContent } from '@intlayer/core';
|
|
3
|
-
import type { NextFunction,
|
|
2
|
+
import { getDictionary as getDictionaryFunction, getIntlayer as getIntlayerFunction, type LanguageContent } from '@intlayer/core';
|
|
3
|
+
import type { NextFunction, Request, RequestHandler, Response } from 'express';
|
|
4
4
|
export declare const translateFunction: (_req: Request, res: Response, _next?: NextFunction) => <T extends string>(content: LanguageContent<T> | string, locale?: Locales) => T;
|
|
5
5
|
/**
|
|
6
6
|
* Detect locale used by the user and load it into res locale storage
|
|
@@ -9,5 +9,7 @@ export declare const translateFunction: (_req: Request, res: Response, _next?: N
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const intlayer: () => RequestHandler;
|
|
11
11
|
export declare const t: <Content = string>(content: LanguageContent<Content>, locale?: Locales) => Content;
|
|
12
|
+
export declare const getIntlayer: typeof getIntlayerFunction;
|
|
13
|
+
export declare const getDictionary: typeof getDictionaryFunction;
|
|
12
14
|
export { LanguageContent };
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EACL,aAAa,IAAI,qBAAqB,EACtC,WAAW,IAAI,mBAAmB,EAGlC,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAW/E,eAAO,MAAM,iBAAiB,GAC3B,MAAM,OAAO,EAAE,KAAK,QAAQ,EAAE,QAAQ,YAAY,MAClD,CAAC,SAAS,MAAM,EACf,SAAS,eAAe,CAAC,CAAC,CAAC,GAAG,MAAM,EACpC,SAAS,OAAO,KACf,CAgCF,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,QAAQ,QAAO,cAwD3B,CAAC;AAEF,eAAO,MAAM,CAAC,GAAI,OAAO,GAAG,MAAM,EAChC,SAAS,eAAe,CAAC,OAAO,CAAC,EACjC,SAAS,OAAO,KACf,OAAiD,CAAC;AAErD,eAAO,MAAM,WAAW,EAAE,OAAO,mBACS,CAAC;AAC3C,eAAO,MAAM,aAAa,EAAE,OAAO,qBACS,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-intlayer",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Manage internationalization i18n in a simple way for express application.",
|
|
6
6
|
"keywords": [
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"cls-hooked": "^4.2.2",
|
|
65
|
-
"@intlayer/chokidar": "5.3.
|
|
66
|
-
"@intlayer/config": "5.3.
|
|
67
|
-
"@intlayer/core": "5.3.
|
|
68
|
-
"intlayer": "5.3.
|
|
65
|
+
"@intlayer/chokidar": "5.3.12",
|
|
66
|
+
"@intlayer/config": "5.3.12",
|
|
67
|
+
"@intlayer/core": "5.3.12",
|
|
68
|
+
"intlayer": "5.3.12"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@changesets/changelog-github": "0.5.1",
|
|
@@ -82,16 +82,16 @@
|
|
|
82
82
|
"tsc-alias": "^1.8.11",
|
|
83
83
|
"tsup": "^8.4.0",
|
|
84
84
|
"typescript": "^5.8.2",
|
|
85
|
-
"@utils/eslint-config": "1.0.4",
|
|
86
85
|
"@utils/ts-config": "1.0.4",
|
|
87
|
-
"@utils/
|
|
88
|
-
"@utils/
|
|
86
|
+
"@utils/ts-config-types": "1.0.4",
|
|
87
|
+
"@utils/eslint-config": "1.0.4",
|
|
88
|
+
"@utils/tsup-config": "1.0.4"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@intlayer/
|
|
92
|
-
"
|
|
93
|
-
"@intlayer/
|
|
94
|
-
"intlayer": "5.3.
|
|
91
|
+
"@intlayer/config": "5.3.12",
|
|
92
|
+
"intlayer": "5.3.12",
|
|
93
|
+
"@intlayer/chokidar": "5.3.12",
|
|
94
|
+
"@intlayer/core": "5.3.12"
|
|
95
95
|
},
|
|
96
96
|
"engines": {
|
|
97
97
|
"node": ">=14.18"
|