我的Rails應用程序中有許多複雜的結構化html +文本,不知道如何以可維護的方式翻譯這些文本。什麼是最好的方法來解決這個問題。Rails I18n以可維護的方式翻譯多行文本塊?
考慮這個HAML HTML塊:
%h3.grey
You can set your profile so that:
%h4
%ol
%li
Some line blabla
%li
Other users cannot find you
%li
Your profile appears as if it's deleted
.clear
Or
.clear
%br
- 我不想使用的語言諧音它會打亂並且是局部的變化可怕
- 寧可不使用1個字符串翻譯到上述塊翻譯
什麼是一種簡單的,可維護的翻譯方法?任何想法的建議,歡迎聽到別人如何解決這個問題,thx!