add post userbook

needed a refactor to check the id in db during dto validation
This commit is contained in:
2025-10-17 01:13:35 +02:00
parent 7dcca84b7d
commit 9404013592
11 changed files with 157 additions and 30 deletions

View File

@@ -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,