5
0
Fork 0
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:
f 2023-03-22 14:14:55 -03:00
parent ad1d59d6a4
commit 034015938b

View file

@ -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