The Wayback Machine - https://web.archive.org/web/20211121094440/https://github.com/go-gitea/gitea/pull/15073
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

[refactor] Use i18n.Reset to reload locales #15073

Merged
merged 7 commits into from Mar 21, 2021
Merged

Conversation

@6543
Copy link
Member

@6543 6543 commented Mar 20, 2021

Follow up of #14582, by using Reset()

@6543
Copy link
Member Author

@6543 6543 commented Mar 20, 2021

PS: need gomod replace since unknwon/i18n#9 got not merged jet :/

Loading

lunny
lunny approved these changes Mar 21, 2021
Copy link
Member

@lunny lunny left a comment

Except I think the function name Flush should be Reset.

Loading

@6543
Copy link
Member Author

@6543 6543 commented Mar 21, 2021

look's like upstream get merged soon - so lets wait :)

Loading

@6543 6543 changed the title [refactor] Use i18n.Flush to reload locales [refactor] Use i18n.Reset to reload locales Mar 21, 2021
modules/translation/translation.go Outdated Show resolved Hide resolved
Loading
@6543
Copy link
Member Author

@6543 6543 commented Mar 21, 2021

🚀

Loading

@6543 6543 merged commit 24f7bd5 into go-gitea:master Mar 21, 2021
2 checks passed
Loading
@6543 6543 deleted the only_i18n-flush branch Mar 21, 2021
@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants