FIX: Localize text in github oneboxes (#25327)

This commit is contained in:
Jan Cernik
2024-01-19 11:26:06 -03:00
committed by GitHub
parent f4e51e0789
commit d401502834
14 changed files with 84 additions and 23 deletions

View File

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