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:
parent
c7492f4f54
commit
12cfe8e543
@ -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)
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user