Skip to content

Add hooks in get and getHTML methods

Compare
Choose a tag to compare
@cwtuan cwtuan released this 20 Aug 11:16
· 95 commits to master since this release

When run intl.get or intl.getHTML, the intlGetHook will be called.

intl.init({
 intlGetHook: (key, currentLocale)=> {} 
})