mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 22:51:24 +08:00
FIX: Localize text in github oneboxes (#25327)
This commit is contained in:
@ -47,6 +47,7 @@ module Onebox
|
||||
result["link"] = link
|
||||
ulink = URI(link)
|
||||
result["domain"] = "#{ulink.host}/#{ulink.path.split("/")[1]}/#{ulink.path.split("/")[2]}"
|
||||
result["i18n"] = { committed: I18n.t("onebox.github.committed") }
|
||||
|
||||
result
|
||||
end
|
||||
|
Reference in New Issue
Block a user