You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Instance-wide regional defaults for new accounts #93
I searched the open and closed issues and the roadmap, and nobody has asked for this yet.
The Problem
Every new account starts with US defaults: English, imperial, kcal, MM/DD/YYYY, 12-hour time and worldwide Open Food Facts search. The setup wizard picks metric and kJ from the browser's locale, but only the first account goes through it; invited accounts and accounts an admin adds never do. Outside the US, an admin setting CookTrace up for a household has to walk each person through Settings > Regional & Units and Settings > Food Sources.
Your Idea
Either or both of these would solve it:
Instance-wide defaults for new accounts, set by an admin (in Settings > Users, say) and by environment variables in the same style as the other env-locked settings: language, measurement system, energy unit, date format, time format, and food search country and language.
When an account hasn't chosen, start from the browser's locale, the way the wizard already does: en-GB gives metric, DD/MM/YYYY and 24-hour time, de-DE gives metric, and so on. Open in the browser's language until someone picks one #91 already lets the language follow the browser.
Platforms
Web app, Android app, Server or self-hosting
Area
Settings
Other Apps or Workarounds
The StartOS package (https://github.com/stupleb/cooktrace-startos) has a Set Regional Defaults action that writes these keys into user_settings for every account that hasn't chosen them, and again at each start for accounts created since. It depends on the keys and values staying as they are, and a new account only gets them at the next restart, so a built-in default would let it go.
Anything Else
NutriTrace starts every account with the same US defaults.
Activity