Skip to content

Commit

Permalink
fix: Fix translate and annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu committed Nov 5, 2023
1 parent f8d4e95 commit 7754ab7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
7 changes: 3 additions & 4 deletions packages/neuron-ui/src/components/DataSetting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ const DataSetting = () => {
}
}, [prevPath])
const isLightClient = network?.type === LIGHT_NETWORK_TYPE
const hiddenDataPath = isLightClient || !network?.readonly
return (
<>
<div className={styles.root}>
<div className={styles.leftContainer}>
{isLightClient || !network?.readonly ? null : (
{hiddenDataPath ? null : (
<div className={styles.label}>
<div>{t('settings.data.ckb-node-data')}</div>
<Tooltip
Expand All @@ -95,9 +96,7 @@ const DataSetting = () => {
</div>
</div>
<div className={styles.rightContainer}>
{isLightClient || !network?.readonly ? null : (
<PathItem path={prevPath} openPath={openPath} handleClick={onSetting} />
)}
{hiddenDataPath ? null : <PathItem path={prevPath} openPath={openPath} handleClick={onSetting} />}
<ClearCache
className={styles.item}
btnClassName={styles.itemBtn}
Expand Down
4 changes: 2 additions & 2 deletions packages/neuron-ui/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1143,8 +1143,8 @@
"main": {
"external-node-detected-dialog": {
"title": "External node detected",
"body-tips-without-network": "You selected an internal node, but activated an external node. If you need to continue using external nodes, please add a new network.",
"body-tips-with-network": "You have currently selected an internal node, but have activated an external node. If you need to continue using external nodes, please switch to another external network or add a new network.",
"body-tips-without-network": "\"Internal node\" is reserved for the built-in CKB node, please add a new network option for the external node.",
"body-tips-with-network": "\"Internal Node\" is reserved for the built-in CKB node, please select from the following network options or add a new one for the external node.",
"add-network": "Add Network"
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/neuron-ui/src/locales/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,8 @@
"main": {
"external-node-detected-dialog": {
"title": "檢測到外部節點",
"body-tips-without-network": "您選擇了內部節點,但啟動了外部節點。如果您需要繼續使用外部節點,請添加壹個新網絡",
"body-tips-with-network": "您目前選擇了內部節點,但啟動了外部節點。如果您需要繼續使用外部節點,請切換到另壹個外部網絡或添加壹個新網絡",
"body-tips-without-network": "\"Internal Node\" 僅用於連接內置節點,請添加新的網絡選項以連接外部節點",
"body-tips-with-network": "\"Internal Node\" 僅用於連接內置節點,請從選擇以下網絡選項或添加新的網絡選項以連接外部節點",
"add-network": "添加網絡"
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/neuron-ui/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -1135,8 +1135,8 @@
"main": {
"external-node-detected-dialog": {
"title": "检测到外部节点",
"body-tips-without-network": "您选择了内部节点,但启动了外部节点。如果您需要继续使用外部节点,请添加一个新网络",
"body-tips-with-network": "您目前选择了内部节点,但启动了外部节点。如果您需要继续使用外部节点,请切换到另一个外部网络或添加一个新网络",
"body-tips-without-network": "\"Internal Node\" 仅用于连接内置节点,请添加新的网络选项以连接外部节点",
"body-tips-with-network": "\"Internal Node\" 仅用于连接内置节点,请从选择以下网络选项或添加新的网络选项以连接外部节点",
"add-network": "添加网络"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-wallet/src/services/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default class NetworksService extends Store {

Object.assign(network, options)
if (!network.readonly) {
// readonly network chaininfo can not update auto
// readonly network chaininfo is immutable
Object.assign(
network,
await CommonUtils.timeout(2000, this.refreshChainInfo(network), network).catch(() => network)
Expand Down

1 comment on commit 7754ab7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 6758168455

Please sign in to comment.