3
0

Unify json prop names for both translation structs

This commit is contained in:
Denis Arh
2021-09-15 06:36:23 +02:00
committed by Tomaž Jerman
parent 9a2e58532c
commit 2a843a317d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ type (
Resource string `json:"resource"`
Lang string `json:"lang"`
Key string `json:"key"`
Msg string `json:"msg"`
Msg string `json:"message"`
}
ResourceTranslationIndex map[string]*ResourceTranslation
+1 -1
View File
@@ -15,7 +15,7 @@ type (
Lang Lang `json:"lang"`
Resource string `json:"resource"`
K string `json:"k"`
K string `json:"key"`
Message string `json:"message"`
CreatedAt time.Time `json:"createdAt,omitempty"`