alibaba / react-intl-universal

Internationalize React apps. Not only for Component but also for Vanilla JS.
1.33k stars 153 forks source link

feat(cache): implement caching for intl data #233

Closed dvlin-dev closed 10 months ago

dvlin-dev commented 10 months ago

Description

add cache

Fixes https://github.com/alibaba/react-intl-universal/issues/232

Type of change

New feature (non-breaking change which adds functionality)

Test

First call intl.get once, and then check if there is a corresponding value in the cache.

CLAassistant commented 10 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


zhangbaolin seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.