このコミットが含まれているのは:
Omar Roth 2018-12-20 17:41:42 -06:00
コミット d06c5306be
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -3,8 +3,8 @@ def load_locale(name)
end
def translate(locale : Hash(String, JSON::Any) | Nil, translation : String, text : String | Nil = nil)
# if !locale[translation]?
# puts "Could not find translation for #{translation}"
# if locale && !locale[translation]?
# puts "Could not find translation for #{translation.dump}"
# end
if locale && locale[translation]? && !locale[translation].as_s.empty?