{"library":"express-locale","type":"library","category":null,"description":"express-locale is an Express.js middleware designed to robustly determine the locale identifier for incoming HTTP requests. It supports a configurable priority list of lookup sources, including `accept-language` headers, query parameters, cookies, hostname mappings, and a default fallback. Since version 2.0.0, the package standardizes locale output using hyphen-separated format (e.g., `en-US`), aligning with JavaScript's `Intl` object, while still supporting underscore-formatted input for backward compatibility. The current stable version is 2.0.2. While there isn't a strict rapid release cadence, the project receives maintenance updates. Its key differentiators include a flexible configuration for lookup order, the ability to define custom lookup functions, and a clear distinction between language-only and full locale identifiers, with an optional mapping feature, allowing for precise locale resolution based on application needs.","language":"javascript","status":"active","version":"2.0.2","tags":["javascript","locale","express","i18n","l10n","culture"],"last_verified":"Wed May 27","install":[{"cmd":"npm install express-locale","imports":["import createLocaleMiddleware from 'express-locale';","const createLocaleMiddleware = require('express-locale');"]},{"cmd":"yarn add express-locale","imports":[]},{"cmd":"pnpm add express-locale","imports":[]}],"homepage":null,"github":"https://github.com/smhg/express-locale","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/express-locale","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/express-locale/compatibility"}}