si no hay traducción devolver el nombre del campo
This commit is contained in:
parent
91a75b08d0
commit
a0c88457cc
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ class Site
|
|||
#
|
||||
# @return String
|
||||
def t(field)
|
||||
dig(field.to_s, 'label', I18n.locale.to_s)
|
||||
dig(field.to_s, 'label', I18n.locale.to_s) || field.to_s
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue