mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-13 22:00:33 +05:30
Update i18n
This commit is contained in:
parent
2e39299071
commit
d06c5306be
@ -3,8 +3,8 @@ def load_locale(name)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def translate(locale : Hash(String, JSON::Any) | Nil, translation : String, text : String | Nil = nil)
|
def translate(locale : Hash(String, JSON::Any) | Nil, translation : String, text : String | Nil = nil)
|
||||||
# if !locale[translation]?
|
# if locale && !locale[translation]?
|
||||||
# puts "Could not find translation for #{translation}"
|
# puts "Could not find translation for #{translation.dump}"
|
||||||
# end
|
# end
|
||||||
|
|
||||||
if locale && locale[translation]? && !locale[translation].as_s.empty?
|
if locale && locale[translation]? && !locale[translation].as_s.empty?
|
||||||
|
Loading…
Reference in New Issue
Block a user