Fix lapsus with module field res. tr. encoding/decoding
This commit is contained in:
parent
495fac3845
commit
ac0aca7a9c
@ -254,7 +254,7 @@ func (m *ModuleField) encodeTranslationsExpressionValidatorValidatorIDError() (o
|
||||
|
||||
func (f *ModuleField) encodeTranslationsMetaDescriptionView() (out locale.ResourceTranslationSet) {
|
||||
out = locale.ResourceTranslationSet{}
|
||||
if v := f.getOptionKey("description", "edit"); v != nil {
|
||||
if v := f.getOptionKey("description", "view"); v != nil {
|
||||
aux := cast.ToString(v)
|
||||
|
||||
out = append(out, &locale.ResourceTranslation{
|
||||
@ -268,7 +268,7 @@ func (f *ModuleField) encodeTranslationsMetaDescriptionView() (out locale.Resour
|
||||
|
||||
func (f *ModuleField) encodeTranslationsMetaDescriptionEdit() (out locale.ResourceTranslationSet) {
|
||||
out = locale.ResourceTranslationSet{}
|
||||
if v := f.getOptionKey("description", "view"); v != nil {
|
||||
if v := f.getOptionKey("description", "edit"); v != nil {
|
||||
aux := cast.ToString(v)
|
||||
out = append(out, &locale.ResourceTranslation{
|
||||
Resource: f.ResourceTranslation(),
|
||||
@ -281,7 +281,7 @@ func (f *ModuleField) encodeTranslationsMetaDescriptionEdit() (out locale.Resour
|
||||
|
||||
func (f *ModuleField) encodeTranslationsMetaHintView() (out locale.ResourceTranslationSet) {
|
||||
out = locale.ResourceTranslationSet{}
|
||||
if v := f.getOptionKey("hint", "edit"); v != nil {
|
||||
if v := f.getOptionKey("hint", "view"); v != nil {
|
||||
aux := cast.ToString(v)
|
||||
out = append(out, &locale.ResourceTranslation{
|
||||
Resource: f.ResourceTranslation(),
|
||||
@ -294,7 +294,7 @@ func (f *ModuleField) encodeTranslationsMetaHintView() (out locale.ResourceTrans
|
||||
|
||||
func (f *ModuleField) encodeTranslationsMetaHintEdit() (out locale.ResourceTranslationSet) {
|
||||
out = locale.ResourceTranslationSet{}
|
||||
if v := f.getOptionKey("hint", "view"); v != nil {
|
||||
if v := f.getOptionKey("hint", "edit"); v != nil {
|
||||
aux := cast.ToString(v)
|
||||
out = append(out, &locale.ResourceTranslation{
|
||||
Resource: f.ResourceTranslation(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user