mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 22:41:41 +00:00
no fallar si los layouts no tienen traducción #6841
This commit is contained in:
parent
eb1c12e362
commit
24c0161aac
1 changed files with 3 additions and 1 deletions
|
@ -166,8 +166,10 @@ class Site < ApplicationRecord
|
|||
end
|
||||
|
||||
# Similar a site.i18n en jekyll-locales
|
||||
#
|
||||
# @return [Hash]
|
||||
def i18n
|
||||
data[I18n.locale.to_s]
|
||||
data[I18n.locale.to_s] || {}
|
||||
end
|
||||
|
||||
# Devuelve el idioma por defecto del sitio, el primero de la lista.
|
||||
|
|
Loading…
Reference in a new issue