Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CatalogManager to support multiple Cultures and make it thread-safe #49

Merged
merged 4 commits into from
Aug 12, 2023

Conversation

vdaron
Copy link

@vdaron vdaron commented Aug 8, 2023

The current CatalogManager does not works well in a web environment because it is not thread safe and does not support multiple culture at the same time (Need to call Reset to switch from one culture to another).

This merge request try to improve this while remaining 100% compatible with existing behavior.

vdaron added 4 commits August 8, 2023 10:44
 - Keep cache of Catalog in multiple Culture
 - Add UICultureName token in FormatPattern
 - Return a constant EmptyCatalog for non existent translations.
@perpetualKid
Copy link
Owner

looks good, thanks for contribution. Will update the package within next days

@perpetualKid perpetualKid merged commit 8e650d4 into perpetualKid:main Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants