-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
how can refresh cache? #82
Comments
To clarify, are you asking that you localize a resource and then change the |
yes,When I debugged the breakpoint, I confirmed that the json file was indeed modified, but the values I saw in IStringLocalizer were still the same as before |
You need to restart the app. I remember in the past I used the Configuration system so it reloads the data automatically when the source is changed Please let me check and get back to you |
@ByZhouhang do you want to submit a PR to refresh the cache when the underlying storage changes? |
I've never submitted a PR, maybe it's better if you have time to fix this |
I struggled for to last few days to add a few features, I just released |
in my project i use this project and IStringLocalizer
When I change the internationalization prompt, i will mofiy json file immediately and want the program to return the modified prompt immediately, but I find that the program returns the same prompt as before
`
return ResponseOutput.NotOk(_localizer["TrialMaint_PersonnelJoined"]);
`
The text was updated successfully, but these errors were encountered: