Skip to content

Commit

Permalink
console: Update messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaplots committed Oct 23, 2023
1 parent ceded37 commit 1761a1d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const DefaultRoutingPolicyForm = () => (
<Form.Field
name="policy.uplink.application_data"
component={Checkbox}
label={policyMessages.applicationData}
label={sharedMessages.appData}
description={policyMessages.applicationDataDesc}
/>
<Form.Field
Expand All @@ -66,7 +66,7 @@ const DefaultRoutingPolicyForm = () => (
<Form.Field
name="policy.downlink.join_accept"
component={Checkbox}
label={policyMessages.joinAccept}
label={sharedMessages.joinAccept}
description={policyMessages.joinAcceptDesc}
/>
<Form.Field
Expand All @@ -78,7 +78,7 @@ const DefaultRoutingPolicyForm = () => (
<Form.Field
name="policy.downlink.application_data"
component={Checkbox}
label={policyMessages.applicationData}
label={sharedMessages.appData}
description={policyMessages.applicationDataAllowDesc}
/>
</Col>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const m = defineMessages({
grpcFieldDescription: 'The address of the service to connect to',
appFormatter: 'Use application payload formatter',
appFormatterWarning: 'This option will affect both uplink and downlink formatter',
setupSubTitle: 'Setup',
defaultFormatter:
'Click <Link>here</Link> to modify the default payload formatter for this application. The payload formatter of this application is currently set to `{defaultFormatter}`',
pasteRepositoryFormatter: 'Paste repository formatter',
Expand Down Expand Up @@ -419,7 +418,7 @@ const PayloadFormattersForm = ({
>
{() => (
<>
<Form.SubTitle title={m.setupSubTitle} />
<Form.SubTitle title={sharedMessages.setupSubTitle} />
<Form.Field
name={FIELD_NAMES.SELECT}
title={m.formatterType}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ const PacketBroker = () => {
<Message content={m.whyNetworkPeeringTitle} component="h3" />
<Message content={m.whyNetworkPeeringText} className={style.info} component="p" />
<Message content={m.enbaling} className={style.info} />
<Message content={m.setup} component="h3" className="mt-cs-xxl" />
<Message content={sharedMessages.setupSubTitle} component="h3" className="mt-cs-xxl" />
{!enabled && <Notification warning small content={m.packetBrokerDisabledDesc} />}
{showError && <ErrorNotification small content={infoError} />}
{enabled && (
Expand Down
1 change: 0 additions & 1 deletion pkg/webui/console/views/admin-packet-broker/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export default defineMessages({
'Since LoRaWAN uses shared spectrum, gateways receive messages from devices registered on other LoRaWAN networks. Instead of discarding this traffic, these messages can be forwarded via Packet Broker to the home network of these devices. This extends coverage of networks and allows devices to use higher data rates that reduce channel utilization and increase battery life. No sensitive data is exposed as LoRaWAN is end-to-end encrypted and integrity protected.',
enbaling:
'Enable forwarding via the options below or define custom routing policies. In the Networks tab below (visible by selecting the option "Use custom routing policies"), you can see which other networks are forwarding data to this network.',
setup: 'Setup',
packetBrokerDisabledDesc:
'The Things Stack is not set up to use Packet Broker. Please refer to the documentation link above for instructions on how to set up The Things Stack for peering with Packet Broker.',
enablePacketBroker: 'Enable Packet Broker',
Expand Down
1 change: 1 addition & 0 deletions pkg/webui/lib/shared-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ export default defineMessages({
sessions: 'Sessions',
setLoRaCloudToken: 'Set LoRa Cloud token',
settings: 'Settings',
setupSubTitle: 'Setup',
shareGatewayInfo: 'Share gateway information',
skipCryptoDescription: 'Skip decryption of uplink payloads and encryption of downlink payloads',
skipCryptoPlaceholder: 'Encryption/decryption disabled',
Expand Down
4 changes: 1 addition & 3 deletions pkg/webui/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@
"console.components.gateway-api-keys-modal.index.description": "Note: After closing this window, these API keys will not be accessible for download anymore. Please make sure to download and store them now.",
"console.components.gateway-api-keys-modal.index.downloadLns": "Download LNS key",
"console.components.gateway-api-keys-modal.index.downloadCups": "Download CUPS key",
"console.components.gateway-visibility-form.index.saveDefaultGatewayVisibility": "Save default gateway visibility",
"console.components.location-form.index.deleteAllLocations": "Delete all location data",
"console.components.location-form.index.deleteFailure": "An error occurred and the location could not be deleted",
"console.components.location-form.index.deleteLocation": "Remove location data",
Expand Down Expand Up @@ -304,7 +303,6 @@
"console.components.payload-formatters-form.index.grpcFieldDescription": "The address of the service to connect to",
"console.components.payload-formatters-form.index.appFormatter": "Use application payload formatter",
"console.components.payload-formatters-form.index.appFormatterWarning": "This option will affect both uplink and downlink formatter",
"console.components.payload-formatters-form.index.setupSubTitle": "Setup",
"console.components.payload-formatters-form.index.defaultFormatter": "Click <Link>here</Link> to modify the default payload formatter for this application. The payload formatter of this application is currently set to `{defaultFormatter}`",
"console.components.payload-formatters-form.index.pasteRepositoryFormatter": "Paste repository formatter",
"console.components.payload-formatters-form.index.pasteApplicationFormatter": "Paste application formatter",
Expand Down Expand Up @@ -682,7 +680,6 @@
"console.views.admin-packet-broker.messages.whyNetworkPeeringTitle": "Why choose network peering?",
"console.views.admin-packet-broker.messages.whyNetworkPeeringText": "Since LoRaWAN uses shared spectrum, gateways receive messages from devices registered on other LoRaWAN networks. Instead of discarding this traffic, these messages can be forwarded via Packet Broker to the home network of these devices. This extends coverage of networks and allows devices to use higher data rates that reduce channel utilization and increase battery life. No sensitive data is exposed as LoRaWAN is end-to-end encrypted and integrity protected.",
"console.views.admin-packet-broker.messages.enbaling": "Enable forwarding via the options below or define custom routing policies. In the Networks tab below (visible by selecting the option \"Use custom routing policies\"), you can see which other networks are forwarding data to this network.",
"console.views.admin-packet-broker.messages.setup": "Setup",
"console.views.admin-packet-broker.messages.packetBrokerDisabledDesc": "The Things Stack is not set up to use Packet Broker. Please refer to the documentation link above for instructions on how to set up The Things Stack for peering with Packet Broker.",
"console.views.admin-packet-broker.messages.enablePacketBroker": "Enable Packet Broker",
"console.views.admin-packet-broker.messages.packetBrokerRegistrationDesc": "Enabling will allow other networks to send traffic to you as well as you forwarding traffic to them, based on the exact routing policy.",
Expand Down Expand Up @@ -1387,6 +1384,7 @@
"lib.shared-messages.sessions": "Sessions",
"lib.shared-messages.setLoRaCloudToken": "Set LoRa Cloud token",
"lib.shared-messages.settings": "Settings",
"lib.shared-messages.setupSubTitle": "Setup",
"lib.shared-messages.shareGatewayInfo": "Share gateway information",
"lib.shared-messages.skipCryptoDescription": "Skip decryption of uplink payloads and encryption of downlink payloads",
"lib.shared-messages.skipCryptoPlaceholder": "Encryption/decryption disabled",
Expand Down
4 changes: 1 addition & 3 deletions pkg/webui/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@
"console.components.gateway-api-keys-modal.index.description": "注意:このウィンドウを閉じると、これらのAPIキーはダウンロードできなくなります。必ずダウンロードして保存してください!",
"console.components.gateway-api-keys-modal.index.downloadLns": "LNSキーをダウンロード",
"console.components.gateway-api-keys-modal.index.downloadCups": "CUPSキーをダウンロード",
"console.components.gateway-visibility-form.index.saveDefaultGatewayVisibility": "デフォルトゲートウェイの可視性を保存",
"console.components.location-form.index.deleteAllLocations": "すべての位置情報を削除",
"console.components.location-form.index.deleteFailure": "エラーが発生し、その場所を削除できませんでした",
"console.components.location-form.index.deleteLocation": "場所入力を削除",
Expand Down Expand Up @@ -304,7 +303,6 @@
"console.components.payload-formatters-form.index.grpcFieldDescription": "接続先サービスのアドレス",
"console.components.payload-formatters-form.index.appFormatter": "アプリケーションペイロードフォーマッタを使用",
"console.components.payload-formatters-form.index.appFormatterWarning": "このオプションは、アップリンクとダウンリンクの両方のフォーマッタをアプリケーションリンクのデフォルトに設定します",
"console.components.payload-formatters-form.index.setupSubTitle": "セットアップ",
"console.components.payload-formatters-form.index.defaultFormatter": "<Link>ここ</Link> をクリックすると、このアプリケーションのデフォルトのペイロードフォーマッタを変更することができます。このアプリケーションのペイロードフォーマッタは現在 `{defaultFormatter}` に設定されています",
"console.components.payload-formatters-form.index.pasteRepositoryFormatter": "リポジトリフォーマッター貼り付け",
"console.components.payload-formatters-form.index.pasteApplicationFormatter": "アプリケーションフォーマッター貼り付け",
Expand Down Expand Up @@ -682,7 +680,6 @@
"console.views.admin-packet-broker.messages.whyNetworkPeeringTitle": "",
"console.views.admin-packet-broker.messages.whyNetworkPeeringText": "",
"console.views.admin-packet-broker.messages.enbaling": "",
"console.views.admin-packet-broker.messages.setup": "",
"console.views.admin-packet-broker.messages.packetBrokerDisabledDesc": "",
"console.views.admin-packet-broker.messages.enablePacketBroker": "",
"console.views.admin-packet-broker.messages.packetBrokerRegistrationDesc": "ご自宅のネットワークから、またはご自宅のネットワークへのピアリングを可能にするには、ご自宅のネットワークを登録する必要があります。これにより、お客様のネットワークがPacket Brokerに認識され、お客様のネットワークのピアリング動作を設定することができます",
Expand Down Expand Up @@ -1387,6 +1384,7 @@
"lib.shared-messages.sessions": "",
"lib.shared-messages.setLoRaCloudToken": "",
"lib.shared-messages.settings": "",
"lib.shared-messages.setupSubTitle": "",
"lib.shared-messages.shareGatewayInfo": "",
"lib.shared-messages.skipCryptoDescription": "",
"lib.shared-messages.skipCryptoPlaceholder": "",
Expand Down

0 comments on commit 1761a1d

Please sign in to comment.