express-intlayer 7.5.0-canary.0 → 7.5.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/dist/cjs/index.cjs +14 -14
- package/dist/cjs/index.cjs.map +1 -1
- package/package.json +11 -11
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
let
|
|
2
|
-
let
|
|
3
|
-
let
|
|
1
|
+
let _intlayer_chokidar = require("@intlayer/chokidar");
|
|
2
|
+
let _intlayer_config = require("@intlayer/config");
|
|
3
|
+
let _intlayer_core = require("@intlayer/core");
|
|
4
4
|
let cls_hooked = require("cls-hooked");
|
|
5
5
|
|
|
6
6
|
//#region src/index.ts
|
|
7
|
-
const configuration = (0,
|
|
7
|
+
const configuration = (0, _intlayer_config.getConfiguration)();
|
|
8
8
|
const { internationalization } = configuration;
|
|
9
9
|
/**
|
|
10
10
|
* Retrieves the locale from storage (cookies, localStorage, sessionStorage).
|
|
11
11
|
*/
|
|
12
|
-
const getStorageLocale = (req) => (0,
|
|
12
|
+
const getStorageLocale = (req) => (0, _intlayer_core.getLocaleFromStorage)({
|
|
13
13
|
getCookie: (name) => req.cookies?.[name],
|
|
14
14
|
getHeader: (name) => req.headers?.[name]
|
|
15
15
|
});
|
|
16
16
|
const appNamespace = (0, cls_hooked.createNamespace)("app");
|
|
17
|
-
(0,
|
|
17
|
+
(0, _intlayer_chokidar.prepareIntlayer)(configuration);
|
|
18
18
|
const translateFunction = (_req, res, _next) => (content, locale) => {
|
|
19
19
|
const { locale: currentLocale, defaultLocale } = res.locals;
|
|
20
20
|
const targetLocale = locale ?? currentLocale;
|
|
21
21
|
if (typeof content === "undefined") return "";
|
|
22
22
|
if (typeof content === "string") return content;
|
|
23
23
|
if (typeof content?.[targetLocale] === "undefined") if (typeof content?.[defaultLocale] === "undefined") return content;
|
|
24
|
-
else return (0,
|
|
25
|
-
return (0,
|
|
24
|
+
else return (0, _intlayer_core.getTranslation)(content, defaultLocale);
|
|
25
|
+
return (0, _intlayer_core.getTranslation)(content, targetLocale);
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* Detect locale used by the user and load it into res locale storage
|
|
@@ -35,14 +35,14 @@ const intlayer = () => async (req, res, next) => {
|
|
|
35
35
|
if (req && typeof req.headers === "object") {
|
|
36
36
|
for (const key in req.headers) if (typeof req.headers[key] === "string") negotiatorHeaders[key] = req.headers[key];
|
|
37
37
|
}
|
|
38
|
-
const localeDetected = (0,
|
|
38
|
+
const localeDetected = (0, _intlayer_core.localeDetector)(negotiatorHeaders, internationalization.locales, internationalization.defaultLocale);
|
|
39
39
|
res.locals.locale_storage = localeFromStorage;
|
|
40
40
|
res.locals.locale_detected = localeDetected;
|
|
41
41
|
res.locals.locale = localeFromStorage ?? localeDetected;
|
|
42
42
|
res.locals.defaultLocale = internationalization.defaultLocale;
|
|
43
43
|
const t$1 = translateFunction(req, res, next);
|
|
44
|
-
const getIntlayer$1 = (key, localeArg = localeDetected, ...props) => (0,
|
|
45
|
-
const getDictionary$1 = (key, localeArg = localeDetected, ...props) => (0,
|
|
44
|
+
const getIntlayer$1 = (key, localeArg = localeDetected, ...props) => (0, _intlayer_core.getIntlayer)(key, localeArg, ...props);
|
|
45
|
+
const getDictionary$1 = (key, localeArg = localeDetected, ...props) => (0, _intlayer_core.getDictionary)(key, localeArg, ...props);
|
|
46
46
|
res.locals.t = t$1;
|
|
47
47
|
res.locals.getIntlayer = getIntlayer$1;
|
|
48
48
|
res.locals.getDictionary = getDictionary$1;
|
|
@@ -60,7 +60,7 @@ const t = (content, locale) => {
|
|
|
60
60
|
return appNamespace.get("t")(content, locale);
|
|
61
61
|
} catch (error) {
|
|
62
62
|
if (process.env.NODE_ENV === "development") console.error(error.message);
|
|
63
|
-
return (0,
|
|
63
|
+
return (0, _intlayer_core.getTranslation)(content, locale ?? internationalization.defaultLocale);
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
const getIntlayer = (...args) => {
|
|
@@ -70,7 +70,7 @@ const getIntlayer = (...args) => {
|
|
|
70
70
|
return appNamespace.get("getIntlayer")(...args);
|
|
71
71
|
} catch (error) {
|
|
72
72
|
if (process.env.NODE_ENV === "development") console.error(error.message);
|
|
73
|
-
return (0,
|
|
73
|
+
return (0, _intlayer_core.getIntlayer)(...args);
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
const getDictionary = (...args) => {
|
|
@@ -80,7 +80,7 @@ const getDictionary = (...args) => {
|
|
|
80
80
|
return appNamespace.get("getDictionary")(...args);
|
|
81
81
|
} catch (error) {
|
|
82
82
|
if (process.env.NODE_ENV === "development") console.error(error.message);
|
|
83
|
-
return (0,
|
|
83
|
+
return (0, _intlayer_core.getDictionary)(...args);
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["negotiatorHeaders: Record<string, string>","t","getIntlayer: typeof getIntlayerFunction","getDictionary: typeof getDictionaryFunction","getIntlayer","getDictionary"],"sources":["../../src/index.ts"],"sourcesContent":["import { prepareIntlayer } from '@intlayer/chokidar';\nimport { getConfiguration } from '@intlayer/config';\nimport {\n getDictionary as getDictionaryFunction,\n getIntlayer as getIntlayerFunction,\n getLocaleFromStorage,\n getTranslation,\n localeDetector,\n} from '@intlayer/core';\nimport type { Locale, StrictModeLocaleMap } from '@intlayer/types';\nimport { createNamespace } from 'cls-hooked';\nimport type { NextFunction, Request, RequestHandler, Response } from 'express';\n\nconst configuration = getConfiguration();\nconst { internationalization } = configuration;\n\n/**\n * Retrieves the locale from storage (cookies, localStorage, sessionStorage).\n */\nconst getStorageLocale = (req: Request): Locale | undefined =>\n getLocaleFromStorage({\n getCookie: (name: string) => req.cookies?.[name],\n getHeader: (name: string) => req.headers?.[name] as string | undefined,\n });\n\nconst appNamespace = createNamespace('app');\n\nprepareIntlayer(configuration);\n\nexport const translateFunction =\n (_req: Request, res: Response, _next?: NextFunction) =>\n <T extends string>(\n content: StrictModeLocaleMap<T> | string,\n locale?: Locale\n ): T => {\n const { locale: currentLocale, defaultLocale } = res.locals as {\n locale: Locale;\n defaultLocale: Locale;\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?.[\n targetLocale as unknown as keyof StrictModeLocaleMap<T>\n ] === 'undefined'\n ) {\n if (\n typeof content?.[\n defaultLocale as unknown as keyof StrictModeLocaleMap<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 => async (req, res, next) => {\n // Detect if locale is set by intlayer frontend lib in the headers\n const localeFromStorage = getStorageLocale(req);\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_storage = localeFromStorage;\n res.locals.locale_detected = localeDetected;\n res.locals.locale = localeFromStorage ?? 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: StrictModeLocaleMap<Content>,\n locale?: Locale\n): Content => {\n try {\n if (typeof appNamespace === 'undefined') {\n throw new Error(\n 'Intlayer is not initialized. Add the `app.use(intlayer());` middleware before using this function.'\n );\n }\n\n if (typeof appNamespace.get('t') !== 'function') {\n throw new Error(\n 'Using the import { t } from \"express-intlayer\" is not supported in your environment. Use the res.locals.t syntax instead.'\n );\n }\n\n return appNamespace.get('t')(content, locale);\n } catch (error) {\n if (process.env.NODE_ENV === 'development') {\n console.error((error as Error).message);\n }\n\n return getTranslation(\n content,\n locale ?? internationalization.defaultLocale\n );\n }\n};\n\nexport const getIntlayer: typeof getIntlayerFunction = (...args) => {\n try {\n if (typeof appNamespace === 'undefined') {\n throw new Error(\n 'Intlayer is not initialized. Add the `app.use(intlayer());` middleware before using this function.'\n );\n }\n\n if (typeof appNamespace.get('getIntlayer') !== 'function') {\n throw new Error(\n 'Using the import { t } from \"express-intlayer\" is not supported in your environment. Use the res.locals.t syntax instead.'\n );\n }\n\n return appNamespace.get('getIntlayer')(...args);\n } catch (error) {\n if (process.env.NODE_ENV === 'development') {\n console.error((error as Error).message);\n }\n return getIntlayerFunction(...args);\n }\n};\n\nexport const getDictionary: typeof getDictionaryFunction = (...args) => {\n try {\n if (typeof appNamespace === 'undefined') {\n throw new Error(\n 'Intlayer is not initialized. Add the `app.use(intlayer());` middleware before using this function.'\n );\n }\n\n if (typeof appNamespace.get('getDictionary') !== 'function') {\n throw new Error(\n 'Using the import { t } from \"express-intlayer\" is not supported in your environment. Use the res.locals.t syntax instead.'\n );\n }\n\n return appNamespace.get('getDictionary')(...args);\n } catch (error) {\n if (process.env.NODE_ENV === 'development') {\n console.error((error as Error).message);\n }\n return getDictionaryFunction(...args);\n }\n};\n"],"mappings":";;;;;;AAaA,MAAM,
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["negotiatorHeaders: Record<string, string>","t","getIntlayer: typeof getIntlayerFunction","getDictionary: typeof getDictionaryFunction","getIntlayer","getDictionary"],"sources":["../../src/index.ts"],"sourcesContent":["import { prepareIntlayer } from '@intlayer/chokidar';\nimport { getConfiguration } from '@intlayer/config';\nimport {\n getDictionary as getDictionaryFunction,\n getIntlayer as getIntlayerFunction,\n getLocaleFromStorage,\n getTranslation,\n localeDetector,\n} from '@intlayer/core';\nimport type { Locale, StrictModeLocaleMap } from '@intlayer/types';\nimport { createNamespace } from 'cls-hooked';\nimport type { NextFunction, Request, RequestHandler, Response } from 'express';\n\nconst configuration = getConfiguration();\nconst { internationalization } = configuration;\n\n/**\n * Retrieves the locale from storage (cookies, localStorage, sessionStorage).\n */\nconst getStorageLocale = (req: Request): Locale | undefined =>\n getLocaleFromStorage({\n getCookie: (name: string) => req.cookies?.[name],\n getHeader: (name: string) => req.headers?.[name] as string | undefined,\n });\n\nconst appNamespace = createNamespace('app');\n\nprepareIntlayer(configuration);\n\nexport const translateFunction =\n (_req: Request, res: Response, _next?: NextFunction) =>\n <T extends string>(\n content: StrictModeLocaleMap<T> | string,\n locale?: Locale\n ): T => {\n const { locale: currentLocale, defaultLocale } = res.locals as {\n locale: Locale;\n defaultLocale: Locale;\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?.[\n targetLocale as unknown as keyof StrictModeLocaleMap<T>\n ] === 'undefined'\n ) {\n if (\n typeof content?.[\n defaultLocale as unknown as keyof StrictModeLocaleMap<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 => async (req, res, next) => {\n // Detect if locale is set by intlayer frontend lib in the headers\n const localeFromStorage = getStorageLocale(req);\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_storage = localeFromStorage;\n res.locals.locale_detected = localeDetected;\n res.locals.locale = localeFromStorage ?? 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: StrictModeLocaleMap<Content>,\n locale?: Locale\n): Content => {\n try {\n if (typeof appNamespace === 'undefined') {\n throw new Error(\n 'Intlayer is not initialized. Add the `app.use(intlayer());` middleware before using this function.'\n );\n }\n\n if (typeof appNamespace.get('t') !== 'function') {\n throw new Error(\n 'Using the import { t } from \"express-intlayer\" is not supported in your environment. Use the res.locals.t syntax instead.'\n );\n }\n\n return appNamespace.get('t')(content, locale);\n } catch (error) {\n if (process.env.NODE_ENV === 'development') {\n console.error((error as Error).message);\n }\n\n return getTranslation(\n content,\n locale ?? internationalization.defaultLocale\n );\n }\n};\n\nexport const getIntlayer: typeof getIntlayerFunction = (...args) => {\n try {\n if (typeof appNamespace === 'undefined') {\n throw new Error(\n 'Intlayer is not initialized. Add the `app.use(intlayer());` middleware before using this function.'\n );\n }\n\n if (typeof appNamespace.get('getIntlayer') !== 'function') {\n throw new Error(\n 'Using the import { t } from \"express-intlayer\" is not supported in your environment. Use the res.locals.t syntax instead.'\n );\n }\n\n return appNamespace.get('getIntlayer')(...args);\n } catch (error) {\n if (process.env.NODE_ENV === 'development') {\n console.error((error as Error).message);\n }\n return getIntlayerFunction(...args);\n }\n};\n\nexport const getDictionary: typeof getDictionaryFunction = (...args) => {\n try {\n if (typeof appNamespace === 'undefined') {\n throw new Error(\n 'Intlayer is not initialized. Add the `app.use(intlayer());` middleware before using this function.'\n );\n }\n\n if (typeof appNamespace.get('getDictionary') !== 'function') {\n throw new Error(\n 'Using the import { t } from \"express-intlayer\" is not supported in your environment. Use the res.locals.t syntax instead.'\n );\n }\n\n return appNamespace.get('getDictionary')(...args);\n } catch (error) {\n if (process.env.NODE_ENV === 'development') {\n console.error((error as Error).message);\n }\n return getDictionaryFunction(...args);\n }\n};\n"],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-intlayer",
|
|
3
|
-
"version": "7.5.0
|
|
3
|
+
"version": "7.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Manage internationalization i18n in a simple way for express application.",
|
|
6
6
|
"keywords": [
|
|
@@ -76,25 +76,25 @@
|
|
|
76
76
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@intlayer/chokidar": "7.5.0
|
|
80
|
-
"@intlayer/config": "7.5.0
|
|
81
|
-
"@intlayer/core": "7.5.0
|
|
82
|
-
"@intlayer/types": "7.5.0
|
|
79
|
+
"@intlayer/chokidar": "7.5.0",
|
|
80
|
+
"@intlayer/config": "7.5.0",
|
|
81
|
+
"@intlayer/core": "7.5.0",
|
|
82
|
+
"@intlayer/types": "7.5.0",
|
|
83
83
|
"cls-hooked": "4.2.2",
|
|
84
|
-
"intlayer": "7.5.0
|
|
84
|
+
"intlayer": "7.5.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@types/cls-hooked": "4.3.9",
|
|
88
|
-
"@types/express": "5.0.
|
|
89
|
-
"@types/node": "
|
|
88
|
+
"@types/express": "5.0.6",
|
|
89
|
+
"@types/node": "25.0.3",
|
|
90
90
|
"@utils/ts-config": "1.0.4",
|
|
91
91
|
"@utils/ts-config-types": "1.0.4",
|
|
92
92
|
"@utils/tsdown-config": "1.0.4",
|
|
93
|
-
"express": "5.1
|
|
93
|
+
"express": "5.2.1",
|
|
94
94
|
"rimraf": "6.1.2",
|
|
95
|
-
"tsdown": "0.
|
|
95
|
+
"tsdown": "0.18.1",
|
|
96
96
|
"typescript": "5.9.3",
|
|
97
|
-
"vitest": "4.0.
|
|
97
|
+
"vitest": "4.0.16"
|
|
98
98
|
},
|
|
99
99
|
"engines": {
|
|
100
100
|
"node": ">=14.18"
|