Get the system locale from environment variables and OS APIs for Node.js applications.
os-locale is a Node.js library that retrieves the system locale from environment variables and OS APIs. It solves the problem of detecting user language and regional settings for applications that need to internationalize their content, especially CLI tools that cannot rely solely on browser-based Intl APIs.
Node.js developers building CLI tools, internationalized applications, or modules that require locale-aware behavior based on system settings.
Developers choose os-locale because it provides reliable locale detection from environment variables like `LC_ALL` and `LANG`, which are not fully supported by the Intl API, making it essential for cross-platform CLI tools and server-side applications.
Get the system locale
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.