add post userbook
needed a refactor to check the id in db during dto validation
This commit is contained in:
@@ -20,7 +20,7 @@ func InitializeI18n() *i18n.Bundle {
|
||||
return bundle
|
||||
}
|
||||
|
||||
func GetTranslatedMessage(ac appcontext.AppContext, messageID string) string {
|
||||
func GetTranslatedMessage(ac *appcontext.AppContext, messageID string) string {
|
||||
localizer := i18n.NewLocalizer(ac.I18n, ac.C.GetHeader("Accept-Language"))
|
||||
message, err := localizer.LocalizeMessage(&i18n.Message{
|
||||
ID: messageID,
|
||||
|
||||
Reference in New Issue
Block a user