--- /dev/null
+const cn = {
+ "key alias already exists": "秘钥别名已经存在",
+ "db insert error": "数据库写入异常",
+ "db get error": "数据库查询异常",
+ "not found by XPub": "未找到私钥数据",
+ "db update error": "数据库更新失败",
+ "db update error: not found by rootXPub": "数据库更新失败:未找到相应的私钥数据",
+ "duplicate account alias": "账户别名已存在",
+ "The wallet already has account data. Can't restore.": "当前钱包存在数据,无法从备份覆盖恢复",
+ "could not decrypt key with given passphrase": "无法解密私钥,请检查密码是否正确",
+};
+
+export default cn;
\ No newline at end of file
--- /dev/null
+import cn from './cn'
+
+const sdkLang = {
+ cn: cn
+};
+
+function getLang(str) {
+ if (sdkLang[localStorage.lang] && sdkLang[localStorage.lang][str]) {
+ return sdkLang[localStorage.lang][str];
+ }
+ return str;
+}
+
+export default getLang;
\ No newline at end of file
<script>
import bytom from "../../script/bytom";
+import getLang from "../../../assets/language/sdk"
export default {
name: "",
data() {
this.confirmClose();
this.transaction.passwd = "";
this.$dialog.show({
- body: error.message
+ body: getLang(error.message)
});
});
}