This commit is contained in:
BoHung Chiu 2021-11-10 09:51:22 +08:00
parent 0b5e97583c
commit 58075acb9f
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ class SiteFeedAnnc
if trans.nil? if trans.nil?
trans = {} trans = {}
locales.each do |locale| locales.each do |locale|
locale = locale.to_s
trans[locale] = {} trans[locale] = {}
I18n.with_locale(locale) do I18n.with_locale(locale) do
trans[locale]['top'] = I18n.t(:top) trans[locale]['top'] = I18n.t(:top)