bcye / whathaveiread

WHIR - What have I read? Is an iOS app that allows you to keep track of all books you've read and keep a short summary about them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API errors are not localized

raysarebest opened this issue · comments

Line 17 of AlertableError.swift calls error.description instead of error.localizedDescription. This causes the error shown to the user to always be in English, regardless of their localization. The solution to this would be to override localizedDescription for all of the Error types in the app, and have it return a different localized string based on what the error is. These strings will each need to be defined with their own key in their respective language's Localizable.strings file