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

Localization not working with Localizable.strings file #26

Closed
thang2410199 opened this issue May 15, 2018 · 5 comments
Closed

Localization not working with Localizable.strings file #26

thang2410199 opened this issue May 15, 2018 · 5 comments
Assignees
Labels

Comments

@thang2410199
Copy link

I used Localizable.strings according to Apple guideline, and it works with
NSLocalizedString("key", comment: "")

Now I try to use Localize and "key".localized and it display key, not the proper value

@andresilvagomez
Copy link
Owner

andresilvagomez commented May 15, 2018

@thang2410199 hey I hope all is ok,
Could you share me the environment please.
iOS Version, Xcode version, are you using CocoaPods or Carthage?, etc

and some configurations of Localize

@thang2410199
Copy link
Author

thang2410199 commented May 15, 2018 via email

@andresilvagomez
Copy link
Owner

@thang2410199 thanks for your report I found the issue and I fix i.

Its ready in CocoaPods

thanks for all, have a good day.

-> Localize (2.0.3)

Updating spec repo master


🎉 Congrats

🚀 Localize (2.0.3) successfully published
📅 May 15th, 08:58
🌎 https://cocoapods.org/pods/Localize
👍 Tell your friends!

@andresilvagomez
Copy link
Owner

@thang2410199 remember

you can use this if your string file is named Strings.string

print("hello.world".localized)

If you have a different file name, in your app delegate

import Localize
.....
Localize.update(fileName: "yourname")

and use the first code part.

Thanks for all !!

@andresilvagomez
Copy link
Owner

Please let me know if it works for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants