[fix] missing categories i18n

This commit is contained in:
Vinícius Moreira
2020-01-09 12:20:34 -03:00
parent 0acb5b7047
commit 8b77c87dab
5 changed files with 11 additions and 4 deletions

View File

@@ -19,7 +19,10 @@ class I18n(dict):
return self.current.__getitem__(item)
except KeyError:
if self.default:
return self.default.__getitem__(item)
try:
return self.default.__getitem__(item)
except KeyError:
return item
else:
return item