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

Can not get localized string in swift files using genstrings.py #8

Closed
howie-misfit opened this issue Oct 10, 2015 · 2 comments
Closed

Comments

@howie-misfit
Copy link

I am using Swift 2 and have already import Localize to do i18n.

Everything works well, but i can not use genstrings.py to get the localized source string in swift files:

In swift file( test.swift):
label.text = "Name".localized()

after i run genstrings.py, nothing in the terminal, i suppose it could be like this:

/*

  • ./test.swfit
    */

"Name" = "Name";

I am not familiar with RE and Python, after i tried many times, it still can not work as i hope.

can you help to fix it?

@marmelroy
Copy link
Owner

Thanks for finding this issue. Looks like there was a bug in the regular expression I was using. Fixed in the latest commit. Will do a cocoapods release too.

@howie-misfit
Copy link
Author

👍

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

No branches or pull requests

2 participants