You can enable strict_mode
, where only the exact allowed locales will be matched. For example:
- If your user has a browser locale with
de_DE
andde
, and you only explicitly allowde
, the localede
will be chosen. - If your user has a browser locale with
de
and you only explicitly allowde_DE
, no locale will be detected.