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

System-side errors should have localized, but not. #1827

Closed
libern opened this Issue Mar 30, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@libern
Copy link

commented Mar 30, 2019

If I use the iOS system with Chinese language, it is okay that I can get localizedDescription

error ==Error Domain=NSURLErrorDomain Code=-1009 "似乎已断开与互联网的连接。"

However, with the same system with Chinese, what I get for localizedDescription using Alamofire only returns me in English. Is there a problem?

Network Error = Optional(Moya.MoyaError.underlying(Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline."

@BasThomas BasThomas added the question label Mar 30, 2019

@pedrovereza

This comment has been minimized.

Copy link
Member

commented Mar 31, 2019

Hey @libern, this seems to be related to Alamofire, not Moya itself.

Also, see Alamofire/Alamofire#2679 (comment)

@libern

This comment has been minimized.

Copy link
Author

commented Apr 2, 2019

I found out that the project must be added localization for that language, even the system is in Chinese doesn't make any difference.

image

Thanks after all.

@libern libern closed this Apr 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.