fix
This commit is contained in:
parent
3d997ba641
commit
cb8ca7528f
|
@ -57,12 +57,21 @@ namespace :announcement_link_widget do
|
|||
|
||||
# debugger
|
||||
end
|
||||
|
||||
ts = {
|
||||
"bulletins" : {
|
||||
"en" => "Bulletin",
|
||||
"zh_tw" => "公告訊息"
|
||||
},
|
||||
"related_links" => {
|
||||
"en" => "Related Links",
|
||||
"zh_tw" => "相關連結"
|
||||
}
|
||||
}
|
||||
@data = {
|
||||
"tags" => common_tags_frontend,
|
||||
"extras" => {
|
||||
"heading-announcements" => t("announcement_link_widget.bulletins"),
|
||||
"heading-links" => t("announcement_link_widget.related_links")
|
||||
"heading-announcements" => ts["bulletins"][locale.to_s],
|
||||
"heading-links" => ts["related_links"][locale.to_s]
|
||||
}
|
||||
}
|
||||
file = File.join(Rails.root, "public" , "announcement_link_widget_#{locale.to_s}.json")
|
||||
|
|
Loading…
Reference in New Issue