1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix binding of this for I18nProvider#tOrKey

This commit is contained in:
Whymarrh Whitby 2019-05-01 00:23:12 -02:30
parent c7492f4f54
commit 12cfe8e543

View File

@ -19,7 +19,7 @@ class I18nProvider extends Component {
return t(current, key, ...args) || t(en, key, ...args) || `[${key}]`
},
tOrDefault: this.tOrDefault,
tOrKey (key, ...args) {
tOrKey: (key, ...args) => {
return this.tOrDefault(key, key, ...args)
},
}