Skip to content

Commit

Permalink
console: Fix messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaplots committed Oct 30, 2023
1 parent 0b2401b commit 1e87d83
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pkg/webui/console/views/device-overview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const m = defineMessages({
keysNotExposed: 'Keys are not exposed',
failedAccessOtherHostDevice:
'The end device you attempted to visit is registered on a different cluster and needs to be accessed using its host Console.',
macData: 'Download MAC data',
downloadMacData: 'Download MAC data',
sensitiveDataWarning:
'The MAC data can contain sensitive information such as session keys that can be used to decrypt messages. <b>Do not share this information publicly</b>.',
noSessionWarning:
Expand Down Expand Up @@ -265,7 +265,7 @@ const DeviceInfo = ({ frequencyPlans, device, onExport }) => {
},
}}
onApprove={onExport}
message={sharedMessages.macData}
message={m.downloadMacData}
type="button"
icon="file_download"
/>
Expand Down Expand Up @@ -307,14 +307,14 @@ const DeviceOverview = () => {

if (!('mac_state' in result)) {
toast({
title: sharedMessages.macData,
title: m.downloadMacData,
message: m.macStateError,
type: toast.types.ERROR,
})
}
} catch {
toast({
title: sharedMessages.macData,
title: m.downloadMacData,
message: m.macStateError,
type: toast.types.ERROR,
})
Expand Down
2 changes: 1 addition & 1 deletion pkg/webui/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@
"console.views.device-overview.index.latestData": "Latest data",
"console.views.device-overview.index.keysNotExposed": "Keys are not exposed",
"console.views.device-overview.index.failedAccessOtherHostDevice": "The end device you attempted to visit is registered on a different cluster and needs to be accessed using its host Console.",
"console.views.device-overview.index.macData": "Download MAC data",
"console.views.device-overview.index.downloadMacData": "Download MAC data",
"console.views.device-overview.index.sensitiveDataWarning": "The MAC data can contain sensitive information such as session keys that can be used to decrypt messages. <b>Do not share this information publicly</b>.",
"console.views.device-overview.index.noSessionWarning": "The end device is currently not connected to the network (no active session). The MAC data will hence only contain the current MAC settings.",
"console.views.device-overview.index.macStateError": "There was an error and MAC state could not be included in the MAC data.",
Expand Down
2 changes: 1 addition & 1 deletion pkg/webui/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@
"console.views.device-overview.index.latestData": "最新データ",
"console.views.device-overview.index.keysNotExposed": "キーは露出していません",
"console.views.device-overview.index.failedAccessOtherHostDevice": "アクセスしようとしたエンドデバイスは別のクラスタに登録されているため、そのホストコンソールを使用してアクセスする必要があります",
"console.views.device-overview.index.macData": "",
"console.views.device-overview.index.downloadMacData": "",
"console.views.device-overview.index.sensitiveDataWarning": "MACデータには、メッセージの復号化に使用できるセッションキーなどの機密情報が含まれていることがあります。この情報を一般に公開しないでください!",
"console.views.device-overview.index.noSessionWarning": "エンドデバイスは現在ネットワークに接続されていない(アクティブセッションがない)。そのため、MACデータには、現在のMAC設定のみが含まれます",
"console.views.device-overview.index.macStateError": "エラーが発生し、MAC状態をMACデータに含めることができませんでした",
Expand Down

0 comments on commit 1e87d83

Please sign in to comment.