summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-12-20 17:41:42 -0600
committerOmar Roth <omarroth@hotmail.com>2018-12-20 17:41:42 -0600
commitd06c5306be9a685b294db3412be876e9c2f90433 (patch)
treeb6b069eed5a5cb22d8bc9ee7392c237e398a84c7
parent2e3929907172ee75235a7e487d4e7ac594ac1d03 (diff)
downloadinvidious-d06c5306be9a685b294db3412be876e9c2f90433.tar.gz
invidious-d06c5306be9a685b294db3412be876e9c2f90433.tar.bz2
invidious-d06c5306be9a685b294db3412be876e9c2f90433.zip
Update i18n
-rw-r--r--src/invidious/helpers/i18n.cr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/helpers/i18n.cr b/src/invidious/helpers/i18n.cr
index ec44604f..5acdcfc5 100644
--- a/src/invidious/helpers/i18n.cr
+++ b/src/invidious/helpers/i18n.cr
@@ -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?