rosetta icon indicating copy to clipboard operation
rosetta copied to clipboard

Provide a function to extract used preferred language from environment

Open baptiste0928 opened this issue 2 years ago • 0 comments

Detecting user preferred language from environment variable or system configuration seems to be a common use case, so it could be great to provide a ready-to-use function to do that. It will probably be hidden behind a feature to avoid unnecessary additional dependencies.

The current_locale crate can be used to detect user preferred language.

Suggestion from Reddit by tlgman.

baptiste0928 avatar Oct 18 '21 20:10 baptiste0928