[wgem] handling i18n suggestion description | fix indexed search

This commit is contained in:
Vinícius Moreira
2019-12-17 13:11:38 -03:00
parent ea14310ad7
commit b4d3a48112
3 changed files with 29 additions and 10 deletions

View File

@@ -7,9 +7,11 @@ from bauh.view.util import resource
class I18n(dict):
def __init__(self, current_locale: dict, default_locale: dict):
def __init__(self, current_key: str, current_locale: dict, default_key: str, default_locale: dict):
super(I18n, self).__init__()
self.current_key = current_key
self.current = current_locale
self.default_key = default_key
self.default = default_locale
def __getitem__(self, item):