cd844aec45
This consolidates the places where a default language has to be set. - Removed import of the 'userService' package into the 'languages' util package This was required to prevent a cyclic import between the two packages. - Added a 'UserRetriever' interface to read the language setting of users inside the 'languages' package
11 lignes
273 o
Go
11 lignes
273 o
Go
package config
|
|
|
|
type I18nConfig struct {
|
|
TranslationsDirectory string `json:"translations_directory"`
|
|
DefaultLanguage string `json:"default_language"`
|
|
}
|
|
|
|
var DefaultI18nConfig = I18nConfig{
|
|
TranslationsDirectory: "translations",
|
|
DefaultLanguage: "en-us",
|
|
}
|