Implement switching language (but doesn't persist)
This commit is contained in:
@@ -4,6 +4,7 @@ type LanguageModel struct {
|
||||
Emoji string `json:"emoji"`
|
||||
Name string `json:"name"`
|
||||
NameNative string `json:"nameNative"`
|
||||
Shorthand string `json:"shorthand"`
|
||||
}
|
||||
|
||||
func GetLanguageMastersList() []LanguageModel {
|
||||
@@ -12,10 +13,12 @@ func GetLanguageMastersList() []LanguageModel {
|
||||
Emoji: "🇬🇧",
|
||||
Name: "English",
|
||||
NameNative: "English",
|
||||
Shorthand: "en",
|
||||
}, {
|
||||
Emoji: "🇩🇪",
|
||||
Name: "German",
|
||||
NameNative: "Deutsch",
|
||||
Shorthand: "de",
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@ type UpdateSettingModel struct {
|
||||
Currency string `json:"currency" form:"currency" query:"currency"`
|
||||
DateFormat string `json:"dateFormat" form:"dateFormat" query:"dateFormat"`
|
||||
DistanceUnit *db.DistanceUnit `json:"distanceUnit" form:"distanceUnit" query:"distanceUnit" `
|
||||
Language string `json:"language" form:"language" query:"language"`
|
||||
}
|
||||
|
||||
type ClarksonMigrationModel struct {
|
||||
|
||||
Reference in New Issue
Block a user