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

Adds ability to extract strings from T() functions to goi18n extract #327

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

allmightyspiff
Copy link

Purpose

goi18n extract will now extract strings wrapped in a T function, in addition to the other cases it extracts strings from.
I also added an example CLI application to go with the web application that shows how to embed i18n files, and use T wrapper functions for translations.

Reason

This feature will help people like me migrating from v1 to v2 of this library. V1 encouraged the use of the T wrapper, so having a way to easily extract those strings would make my life a lot easier, and I assume others who make the migration as well.

Thanks for your time reviewing this issue, and I'll address any issues you may have with the code.
Also thanks for making this library in the first place.

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.

None yet

1 participant