Specify the SDG title uses two lines

This way translators will find a hint indicating they must use two lines
and not three or more, since the title is optimized for being displayed
in two lines.
This commit is contained in:
Javi Martín
2020-12-29 16:18:39 +01:00
parent 401be5b8fb
commit 159edba015
4 changed files with 37 additions and 37 deletions

View File

@@ -21,6 +21,6 @@ class SDG::Goals::ShowComponent < ApplicationComponent
end
def split_title
safe_join(goal.multiline_title.split("\n").map { |text| tag.span(text) }, " ")
safe_join(goal.title_in_two_lines.split("\n").map { |text| tag.span(text) }, " ")
end
end