-
Notifications
You must be signed in to change notification settings - Fork 334
Set Default User Locale #2028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set Default User Locale #2028
Conversation
af2fb97 to
fde065d
Compare
fisx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, especially the LOC stats! :)
Yes, this could work. Please test as you suggested before merging, though.
charts/brig/templates/configmap.yaml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that with our current i8n status the only valid locale here is en, shoudl we really make it configurable? I see no great harm, as long as any other values crashes on startup, but not much value either.
i want to take another look at the new changes.
fisx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming you tested the DefaultUserLocale trick manually? Then except for the missing details in the haddocks this looks very shippable.
bfb6318 to
159b927
Compare
159b927 to
1e7bf3a
Compare
fisx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NB the suggestion to fix the cycle (black hole), otherwise LGTM!
services/brig/src/Brig/Options.hs
Outdated
| defaultTemplateLocale = Locale (Language EN) Nothing | ||
|
|
||
| defaultUserLocale :: Locale | ||
| defaultUserLocale = defaultUserLocale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cycle.
| defaultUserLocale = defaultUserLocale | |
| defaultUserLocale = defaultTemplateLocale |
(anyway it'd also be ok with me if you made both of them just en.)
Co-authored-by: fisx <[email protected]>
Co-authored-by: fisx <[email protected]>
|
|
||
| The brig server config option `setDefaultLocale` has been replaced by `setDefaultUserLocale` and `setDefaultTemplateLocale`. Both settings are optional and `setDefaultTemplateLocale` defaults to `EN` and `setDefaultLocale` defaults to `setDefaultTemplateLocale`. If `setDefaultLocale` was not set or set to `EN` before this change, nothing needs to be done. If `setDefaultLocale` was set to any other language other than `EN` the name of the setting should be changed to `setDefaultTemplateLocale`. | ||
|
|
||
| #### `setDefaultTemplateLocale` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which templates are actually complete in wire-server other than EN? i.e. this settings can't be set to anything other than EN at this point in time unless more templates are provided inside wire-server's brig/deb/templates folder, right? Perhaps the description here should make that clearer.
https://wearezeta.atlassian.net/browse/SQSERVICES-1097
Checklist
changelog.d.