Skip to content

Commit

Permalink
console: Fix translations
Browse files Browse the repository at this point in the history
  • Loading branch information
mjamescompton committed Dec 6, 2024
1 parent 0aa7d12 commit ded6ec1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
8 changes: 2 additions & 6 deletions pkg/webui/console/containers/event-split-frame/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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)
Expand Down Expand Up @@ -115,7 +111,7 @@ const EventSplitFrameInner = ({ children }) => {
icon={IconChevronUp}
className={style.liveDataButton}
onClick={() => setIsOpen(true)}
message={m.liveData}
message={sharedMessages.liveData}
/>
</div>
)}
Expand Down
9 changes: 0 additions & 9 deletions pkg/webui/locales/en-duplicates.json

This file was deleted.

2 changes: 0 additions & 2 deletions pkg/webui/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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...",
Expand Down
2 changes: 0 additions & 2 deletions pkg/webui/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down Expand Up @@ -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": "",
Expand Down

0 comments on commit ded6ec1

Please sign in to comment.