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

change current locale type #277

Merged
merged 1 commit into from
Jan 5, 2024
Merged

change current locale type #277

merged 1 commit into from
Jan 5, 2024

Conversation

stoyanovk
Copy link
Contributor

In this PR I added available to add function as arg for useLocale method
It's need for resolving problem with global TTag instance when you use SSR and streaming

I made short demo when I use ttag with this changes and AsyncLocalStorage node js api

https://github.com/stoyanovk/asyncstorage_ttag_demo/blob/master/src/index.js

@AlexMost
Copy link
Member

Great job, would be great to update doc for the library also https://github.com/ttag-org/ttag/blob/master/docs/library-api.md

@AlexMost AlexMost merged commit 622c16c into master Jan 5, 2024
1 check passed
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