create project
This commit is contained in:
11
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-locale-cookie.js
generated
vendored
Normal file
11
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-locale-cookie.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.detectLocaleCookie = detectLocaleCookie;
|
||||
function detectLocaleCookie(req, locales) {
|
||||
const { NEXT_LOCALE } = req.cookies || {};
|
||||
return NEXT_LOCALE ? locales.find((locale)=>NEXT_LOCALE.toLowerCase() === locale.toLowerCase()) : undefined;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=detect-locale-cookie.js.map
|
||||
Reference in New Issue
Block a user