Skip to content

Commit 3bb9dc3

Browse files
authored
Merge pull request #1902 from MixinNetwork/feature/login
Better error description
2 parents 29fc6c4 + 7d5a3e3 commit 3bb9dc3

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Mixin/Extension/MixinAPIResponseError+Localization.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ extension MixinAPIResponseError: LocalizedError {
1010
case .unauthorized:
1111
return R.string.localizable.unauthorized()
1212
case .forbidden:
13-
return R.string.localizable.access_denied()
13+
return R.string.localizable.error_access_limited()
1414
case .notFound:
1515
return R.string.localizable.error_not_found()
1616
case Self.tooManyRequests:

Mixin/Resources/en.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"about" = "About";
22
"access_contacts_hint" = "Mixin syncs your address book to Mixin servers to help you connect with other Mixin users";
33
"access_dapps_defi_projects" = "Access apps and DeFi projects.";
4-
"access_denied" = "Access denied";
54
"access_to_contacts" = "Access to Contacts";
65
"account" = "Account";
76
"acknowledgements" = "Acknowledgements";
@@ -551,6 +550,7 @@
551550
"enter_your_old_pin" = "Enter your old PIN";
552551
"enter_your_pin" = "Enter your PIN";
553552
"enter_your_pin_to_continue" = "Enter your PIN to continue";
553+
"error_access_limited" = "ERROR 403: Access Limited";
554554
"error_bad_data" = "ERROR 10002: The request data has invalid field";
555555
"error_blockchain" = "ERROR 30100: Blockchain not in sync, please try again later.";
556556
"error_captcha_is_invalid" = "ERROR 10004: CAPTCHA is invalid";

Mixin/Resources/es.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"about" = "Acerca de";
22
"access_contacts_hint" = "Mixin sincroniza tu libreta de direcciones con los servidores de Mixin para ayudarte a conectarte con otros usuarios de Mixin";
33
"access_dapps_defi_projects" = "Access apps and DeFi projects.";
4-
"access_denied" = "Acceso denegado";
54
"access_to_contacts" = "Acceso a Contactos";
65
"account" = "Cuenta";
76
"acknowledgements" = "Agradecimientos";
@@ -551,6 +550,7 @@
551550
"enter_your_old_pin" = "Introduce tu antiguo PIN";
552551
"enter_your_pin" = "Introduce tu PIN";
553552
"enter_your_pin_to_continue" = "Introduce tu PIN para continuar";
553+
"error_access_limited" = "ERROR 403: Access Limited";
554554
"error_bad_data" = "ERROR 10002: Los datos de la solicitud tienen un campo no válido";
555555
"error_blockchain" = "ERROR 30100: Blockchain no está sincronizado, inténtalo de nuevo más tarde.";
556556
"error_captcha_is_invalid" = "ERROR 10004: CAPTCHA no es válido";

Mixin/Resources/ja.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"about" = "Mixinについて";
22
"access_contacts_hint" = "MixinはあなたのアドレスをMixinサーバーに同期させ、Mixinユーザーを自動追加します";
33
"access_dapps_defi_projects" = "Access apps and DeFi projects.";
4-
"access_denied" = "アクセスが拒否されました";
54
"access_to_contacts" = "連絡先へのアクセス";
65
"account" = "アカウント";
76
"acknowledgements" = "謝辞";
@@ -551,6 +550,7 @@
551550
"enter_your_old_pin" = "Enter your old PIN";
552551
"enter_your_pin" = "PINコードを入力してください";
553552
"enter_your_pin_to_continue" = "PINコードを入力して、続けてください";
553+
"error_access_limited" = "ERROR 403: Access Limited";
554554
"error_bad_data" = "エラー 10002:リクエストデータが無効です";
555555
"error_blockchain" = "エラー 30100:ブロックチェーンが同期できていません。後程もう一度お試しください。";
556556
"error_captcha_is_invalid" = "エラー10004:captchaが無効です";

Mixin/Resources/ru.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"about" = "Про";
22
"access_contacts_hint" = "Mixin синхронизирует вашу адресную книгу с серверами Mixin, чтобы помочь вам связаться с другими пользователями Mixin.";
33
"access_dapps_defi_projects" = "Access apps and DeFi projects.";
4-
"access_denied" = "В доступе отказано";
54
"access_to_contacts" = "Доступ к контактам";
65
"account" = "Аккаунт";
76
"acknowledgements" = "Благодарности";
@@ -551,6 +550,7 @@
551550
"enter_your_old_pin" = "Enter your old PIN";
552551
"enter_your_pin" = "Введите свой PIN-код";
553552
"enter_your_pin_to_continue" = "Введите PIN-код, чтобы продолжить";
553+
"error_access_limited" = "ERROR 403: Access Limited";
554554
"error_bad_data" = "ОШИБКА 10002: Данные запроса содержат недопустимое поле";
555555
"error_blockchain" = "ОШИБКА 30100: Блокчейн не синхронизирован, повторите попытку позже.";
556556
"error_captcha_is_invalid" = "ОШИБКА 10004: CAPTCHA недействительна";

Mixin/Resources/zh-Hans.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"about" = "关于";
22
"access_contacts_hint" = "同步通讯录到 Mixin 发现更多好友";
33
"access_dapps_defi_projects" = "访问 apps 或 DeFi 项目";
4-
"access_denied" = "禁止访问";
54
"access_to_contacts" = "访问通讯录";
65
"account" = "账号";
76
"acknowledgements" = "许可证";
@@ -551,6 +550,7 @@
551550
"enter_your_old_pin" = "输入你的旧 PIN";
552551
"enter_your_pin" = "输入你的 PIN";
553552
"enter_your_pin_to_continue" = "输入你的 PIN 以继续";
553+
"error_access_limited" = "错误 403:访问受限";
554554
"error_bad_data" = "错误 10002:请求数据不合法";
555555
"error_blockchain" = "错误 30100:区块链同步异常,请稍后重试";
556556
"error_captcha_is_invalid" = "错误 10004:验证失败";

Mixin/Resources/zh-Hant.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"about" = "關於";
22
"access_contacts_hint" = "同步通訊錄到 Mixin 發現更多好友";
33
"access_dapps_defi_projects" = "訪問 apps 或 DeFi 專案";
4-
"access_denied" = "禁止訪問";
54
"access_to_contacts" = "訪問通訊錄";
65
"account" = "賬號";
76
"acknowledgements" = "許可證";
@@ -551,6 +550,7 @@
551550
"enter_your_old_pin" = "輸入你的舊 PIN";
552551
"enter_your_pin" = "輸入你的 PIN";
553552
"enter_your_pin_to_continue" = "輸入你的 PIN 以繼續";
553+
"error_access_limited" = "錯誤 403:訪問受限";
554554
"error_bad_data" = "錯誤 10002:請求資料不合法";
555555
"error_blockchain" = "錯誤 30100:區塊鏈同步異常,請稍後重試";
556556
"error_captcha_is_invalid" = "錯誤 10004:驗證失敗";

0 commit comments

Comments
 (0)