diff --git a/android/app/build.gradle b/android/app/build.gradle index 425e99cac..4d0f0a2ab 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -112,7 +112,7 @@ android { renderscriptTargetApi 27 renderscriptSupportModeEnabled true versionCode 1 - versionName "0.1.4" + versionName "0.1.5" missingDimensionStrategy "RNN.reactNativeVersion", "reactNative55" ndk { abiFilters "armeabi-v7a", "x86" diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 65a5850a8..8d7ce7948 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ + android:versionName="0.1.5"> diff --git a/ios/bitportal/Info.plist b/ios/bitportal/Info.plist index f2a26fa9b..07ad4fd14 100644 --- a/ios/bitportal/Info.plist +++ b/ios/bitportal/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.1.4 + 0.1.5 CFBundleSignature ???? CFBundleVersion diff --git a/shared/components/Form/TransferAssetsForm/index.native.jsx b/shared/components/Form/TransferAssetsForm/index.native.jsx index 27844b521..4fcfb52b4 100644 --- a/shared/components/Form/TransferAssetsForm/index.native.jsx +++ b/shared/components/Form/TransferAssetsForm/index.native.jsx @@ -28,12 +28,12 @@ export const errorMessages = (error, messages) => { switch (String(message)) { case 'Key derivation failed - possibly wrong passphrase': - return 'Invalid password' + return messages.snd_title_error_psw default: if (!~String(message).indexOf('net usage of transaction is too high')) { - return 'net usage of transaction is too high' + return messages.snd_title_error_hinet } else if (!~String(message).indexOf('cpu usage of transaction is too high')) { - return 'cpu usage of transaction is too high' + return messages.snd_title_error_hicpu } return messages.snd_txtbox_tras_err @@ -67,7 +67,7 @@ const asyncValidate = (values, dispatch, props) => new Promise((resolve, reject) props.actions.validateEOSAccountRequested({ field: 'toAccount', value: props.toAccount, - errorMessage: 'Account dose not exist!', + errorMessage: messages[props.locale].snd_title_error_invact, resolve, reject }) diff --git a/shared/components/Form/TransferAssetsForm/messages.json b/shared/components/Form/TransferAssetsForm/messages.json index 292bbb4f2..3360add3a 100644 --- a/shared/components/Form/TransferAssetsForm/messages.json +++ b/shared/components/Form/TransferAssetsForm/messages.json @@ -10,7 +10,11 @@ "snd_title_name_amt" : "数量", "snd_title_name_bln" : "余额:", "snd_txtbox_txt_rmk" : "附言", - "snd_button_name_nxt" : "下一步" + "snd_button_name_nxt" : "下一步", + "snd_title_error_invact" : "账户不存在", + "snd_title_error_psw" : "密码错误", + "snd_title_error_hinet" : "NET的使用过高", + "snd_title_error_hicpu" : "CPU的使用过高" }, "en": { "snd_title_name_accnm" : "Account", @@ -23,6 +27,10 @@ "snd_title_name_amt" : "Amount", "snd_title_name_bln" : "Balance:", "snd_txtbox_txt_rmk" : "Memo", - "snd_button_name_nxt" : "Next" + "snd_button_name_nxt" : "Next", + "snd_title_error_invact" : "Account dose not exist!", + "snd_title_error_psw" : "Invalid password", + "snd_title_error_hinet" : "net usage of transaction is too high", + "snd_title_error_hicpu" : "cpu usage of transaction is too high" } }