mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Update i18n
This commit is contained in:
parent
2e39299071
commit
d06c5306be
1 changed files with 2 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue