mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 18:56:21 +00:00
fix: mostrar el idioma si no existe una traducción
This commit is contained in:
parent
ad1d59d6a4
commit
034015938b
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
- site.locales.each do |locale|
|
- site.locales.each do |locale|
|
||||||
- next if post.lang.value == locale
|
- next if post.lang.value == locale
|
||||||
- locale_t = t("locales.#{locale}.name")
|
- locale_t = t("locales.#{locale}.name", default: locale.to_s.humanize)
|
||||||
- value = metadata.value.find do |v|
|
- value = metadata.value.find do |v|
|
||||||
- metadata.values[locale].values.include? v
|
- metadata.values[locale].values.include? v
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue