mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 17:15:08 -05:00
I18n: Add locale to user preference (#49425)
* Add __debug_bin file to gitignore * Add locale user preference * undo defaulting to existing JSONData in preferences save
This commit is contained in:
@@ -47,6 +47,7 @@ type SavePreferenceCommand struct {
|
||||
Timezone string `json:"timezone,omitempty"`
|
||||
WeekStart string `json:"weekStart,omitempty"`
|
||||
Theme string `json:"theme,omitempty"`
|
||||
Locale string `json:"locale,omitempty"`
|
||||
Navbar *NavbarPreference `json:"navbar,omitempty"`
|
||||
QueryHistory *QueryHistoryPreference `json:"queryHistory,omitempty"`
|
||||
}
|
||||
@@ -61,6 +62,7 @@ type PatchPreferenceCommand struct {
|
||||
Timezone *string `json:"timezone,omitempty"`
|
||||
WeekStart *string `json:"weekStart,omitempty"`
|
||||
Theme *string `json:"theme,omitempty"`
|
||||
Locale *string `json:"locale,omitempty"`
|
||||
Navbar *NavbarPreference `json:"navbar,omitempty"`
|
||||
QueryHistory *QueryHistoryPreference `json:"queryHistory,omitempty"`
|
||||
}
|
||||
@@ -77,6 +79,7 @@ type NavbarPreference struct {
|
||||
}
|
||||
|
||||
type PreferenceJSONData struct {
|
||||
Locale string `json:"locale"`
|
||||
Navbar NavbarPreference `json:"navbar"`
|
||||
QueryHistory QueryHistoryPreference `json:"queryHistory"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user