-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Currently one cannot do:
const {gettext} = i18n
gettext('Hello, World.')As this would return:
TypeError: Cannot read property 'call' of undefined
However it seem fairly important to be able to shorten notations for views/renders with a lot of strings and for clarity of context.
Would it make sense to add a property accessor that would return an object listing those method as bound vs. call? This would also allow destructuring to get the needed methods.
Metadata
Metadata
Assignees
Labels
No labels