Better locale detection

This commit is contained in:
Alex Gleason 2020-06-04 17:29:00 -05:00
parent ae476b5340
commit f0528e9d43
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -21,8 +21,7 @@ const defaultSettings = ImmutableMap({
deleteModal: true,
defaultPrivacy: 'public',
themeMode: 'light',
// locale: navigator.language.slice(0, 2) || 'en', // FIXME: Dynamic locales
locale: 'en',
locale: navigator.language.split(/[-_]/)[0] || 'en',
systemFont: false,
dyslexicFont: false,