From ded6ec1858eca381aaac91446640c8196deb087f Mon Sep 17 00:00:00 2001 From: Michael Compton Date: Fri, 6 Dec 2024 11:42:13 +0100 Subject: [PATCH] console: Fix translations --- pkg/webui/console/containers/event-split-frame/index.js | 8 ++------ pkg/webui/locales/en-duplicates.json | 9 --------- pkg/webui/locales/en.json | 2 -- pkg/webui/locales/ja.json | 2 -- 4 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 pkg/webui/locales/en-duplicates.json diff --git a/pkg/webui/console/containers/event-split-frame/index.js b/pkg/webui/console/containers/event-split-frame/index.js index 7777bee7923..6c9c688ca8e 100644 --- a/pkg/webui/console/containers/event-split-frame/index.js +++ b/pkg/webui/console/containers/event-split-frame/index.js @@ -15,7 +15,6 @@ import React, { useContext, useCallback, useRef, useEffect } from 'react' import DOM from 'react-dom' import { useDispatch, useSelector } from 'react-redux' -import { defineMessages } from 'react-intl' import Button from '@ttn-lw/components/button' import { IconChevronUp } from '@ttn-lw/components/icon' @@ -26,6 +25,7 @@ import LiveDataTutorial from '@console/components/live-data-tutorial' import PropTypes from '@ttn-lw/lib/prop-types' import attachPromise from '@ttn-lw/lib/store/actions/attach-promise' +import sharedMessages from '@ttn-lw/lib/shared-messages' import { getUser } from '@console/store/actions/users' import { updateUser } from '@console/store/actions/user' @@ -38,10 +38,6 @@ import EventSplitFrameContext from './context' import style from './event-split-frame.styl' -const m = defineMessages({ - liveData: 'Live Data', -}) - const EventSplitFrameInner = ({ children }) => { const { isOpen, height, isActive, setHeight, setIsMounted, setIsOpen } = useContext(EventSplitFrameContext) @@ -115,7 +111,7 @@ const EventSplitFrameInner = ({ children }) => { icon={IconChevronUp} className={style.liveDataButton} onClick={() => setIsOpen(true)} - message={m.liveData} + message={sharedMessages.liveData} /> )} diff --git a/pkg/webui/locales/en-duplicates.json b/pkg/webui/locales/en-duplicates.json deleted file mode 100644 index b5ff1948535..00000000000 --- a/pkg/webui/locales/en-duplicates.json +++ /dev/null @@ -1,9 +0,0 @@ -[ - { - "message": "Live Data", - "ids": [ - "console.components.live-data-button.index.liveData", - "console.containers.event-split-frame.index.liveData" - ] - } -] \ No newline at end of file diff --git a/pkg/webui/locales/en.json b/pkg/webui/locales/en.json index 6f0ef43d3de..a87448aeb5b 100644 --- a/pkg/webui/locales/en.json +++ b/pkg/webui/locales/en.json @@ -163,7 +163,6 @@ "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.live-data-button.index.liveData": "Live Data", "console.components.live-data-tutorial.index.liveDataSplitView": "Live data split view", "console.components.live-data-tutorial.index.liveDataSplitViewDescription": "Debug, make changes while keeping an eye on live data from everywhere with split view.", "console.components.live-data-tutorial.index.gotIt": "Got it", @@ -538,7 +537,6 @@ "console.containers.email-notifications-form.index.unsubscribeDescription": "You will continue to receive notifications in the console.", "console.containers.email-notifications-form.index.discardChanges": "Discard changes", "console.containers.email-notifications-form.index.updateEmailPreferences": "Updated email preferences", - "console.containers.event-split-frame.index.liveData": "Live Data", "console.containers.freq-plans-select.utils.warning": "Frequency plans unavailable", "console.containers.freq-plans-select.utils.none": "Do not set a frequency plan", "console.containers.freq-plans-select.utils.selectFrequencyPlan": "Select a frequency plan...", diff --git a/pkg/webui/locales/ja.json b/pkg/webui/locales/ja.json index eef258df672..7ef6092a2ab 100644 --- a/pkg/webui/locales/ja.json +++ b/pkg/webui/locales/ja.json @@ -163,7 +163,6 @@ "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.live-data-button.index.liveData": "", "console.components.live-data-tutorial.index.liveDataSplitView": "", "console.components.live-data-tutorial.index.liveDataSplitViewDescription": "", "console.components.live-data-tutorial.index.gotIt": "", @@ -538,7 +537,6 @@ "console.containers.email-notifications-form.index.unsubscribeDescription": "", "console.containers.email-notifications-form.index.discardChanges": "", "console.containers.email-notifications-form.index.updateEmailPreferences": "", - "console.containers.event-split-frame.index.liveData": "", "console.containers.freq-plans-select.utils.warning": "", "console.containers.freq-plans-select.utils.none": "", "console.containers.freq-plans-select.utils.selectFrequencyPlan": "",