Skip to content

Commit 6ef64ec

Browse files
authored
Merge pull request #406
refactor(renovate): Upgrade i18next * refactor(renovate): update i18next * refactor(renovate): remove deprecated string casts * fix(renovate): fix alt text
1 parent 25f4741 commit 6ef64ec

File tree

66 files changed

+152
-180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+152
-180
lines changed

hivemq-edge/src/frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"elkjs": "^0.9.1",
6868
"form-data": "^4.0.0",
6969
"framer-motion": "^10.12.21",
70-
"i18next": "^22.4.15",
70+
"i18next": "^23.11.3",
7171
"luxon": "^3.3.0",
7272
"mermaid": "^10.8.0",
7373
"monaco-editor": "^0.47.0",
@@ -77,7 +77,7 @@
7777
"react-dom": "^18.2.0",
7878
"react-hook-form": "^7.43.9",
7979
"react-hotkeys-hook": "^4.5.0",
80-
"react-i18next": "^12.3.0",
80+
"react-i18next": "^14.1.1",
8181
"react-icons": "^5.0.1",
8282
"react-router-dom": "^6.11.2",
8383
"reactflow": "^11.10.2",

hivemq-edge/src/frontend/pnpm-lock.yaml

Lines changed: 13 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hivemq-edge/src/frontend/src/components/Chakra/ColorPicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const ColorPicker = forwardRef<ColorPickerProps, 'div'>(
4040
isDisabled={isDisabled}
4141
data-testid="colorPicker-trigger"
4242
data-color-scheme={selectedColorScheme}
43-
aria-label={t('ColorPicker.trigger', { scheme: selectedColorScheme }) as string}
43+
aria-label={t('ColorPicker.trigger', { scheme: selectedColorScheme })}
4444
bg={`${selectedColorScheme}.500`}
4545
_hover={{ bg: `${selectedColorScheme}.500` }}
4646
_active={{ bg: `${selectedColorScheme}.700` }}
@@ -85,7 +85,7 @@ export const ColorPicker = forwardRef<ColorPickerProps, 'div'>(
8585
key={`color-picker-${color}-${index}`}
8686
data-testid={`colorPicker-selector-${index}`}
8787
data-color-scheme={color}
88-
aria-label={t('ColorPicker.option', { scheme: color }) as string}
88+
aria-label={t('ColorPicker.option', { scheme: color })}
8989
onClick={() => {
9090
setSelectedColorScheme(color)
9191
onChange(color)

hivemq-edge/src/frontend/src/components/DateTime/DateTimeRangeSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const DateTimeRangeSelector: FC<DateTimeRangeSelectorProps> = ({ min, max, setFi
5555
noOptionsMessage={() => t('DateTimeRangeSelector.noOptionsMessage')}
5656
placeholder={t('DateTimeRangeSelector.placeholder')}
5757
formatCreateLabel={(e) => t('DateTimeRangeSelector.formatCreateLabel', { date: e })}
58-
aria-label={t('DateTimeRangeSelector.ariaLabel') as string}
58+
aria-label={t('DateTimeRangeSelector.ariaLabel')}
5959
isClearable={true}
6060
isMulti={false}
6161
components={{

hivemq-edge/src/frontend/src/components/Icons/TopicIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next'
66
const TopicIcon: FC<IconProps> = (props) => {
77
const { t } = useTranslation('components')
88

9-
return <Icon as={SiMqtt} boxSize={4} aria-label={t('topic.iconLabel') as string} {...props} />
9+
return <Icon as={SiMqtt} boxSize={4} aria-label={t('topic.iconLabel')} {...props} />
1010
}
1111

1212
export default TopicIcon

hivemq-edge/src/frontend/src/components/MQTT/TopicCreatableSelect.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ const AbstractTopicCreatableSelect = <T extends boolean>({
7676

7777
return (
7878
<CreatableSelect<TopicOption, T, GroupBase<TopicOption>>
79-
aria-label={t('topicCreate.label') as string}
80-
placeholder={t('topicCreate.placeholder') as string}
79+
aria-label={t('topicCreate.label')}
80+
placeholder={t('topicCreate.placeholder')}
8181
noOptionsMessage={() => t('topicCreate.options.noOptionsMessage')}
8282
formatCreateLabel={(e) => t('topicCreate.options.createLabel', { topic: e })}
8383
isLoading={isLoading}

hivemq-edge/src/frontend/src/components/PaginatedTable/components/Filter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ export const Filter = <T,>({
6767
// value={{ value: columnFilterValue, label: columnFilterValue }}
6868
onChange={(item) => setFilterValue(item?.value)}
6969
options={sortedUniqueValues.map((value: string) => ({ value: value, label: value, group: 'DDD' }))}
70-
placeholder={t('components:pagination.filter.placeholder', { size: getFacetedUniqueValues().size }) as string}
70+
placeholder={t('components:pagination.filter.placeholder', { size: getFacetedUniqueValues().size })}
7171
noOptionsMessage={() => t('components:pagination.filter.noOptions')}
7272
formatCreateLabel={(e) => t('components:pagination.filter.create', { topic: e })}
73-
aria-label={t('components:pagination.filter.label') as string}
73+
aria-label={t('components:pagination.filter.label')}
7474
isClearable={true}
7575
isMulti={false}
7676
components={{

hivemq-edge/src/frontend/src/components/PaginatedTable/components/PaginationBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const PaginationButton: FC<IconButtonProps> = (props) => (
3333
const PaginationBar = <T,>({ table, pageSizes }: PaginationProps<T>) => {
3434
const { t } = useTranslation()
3535
return (
36-
<HStack as="nav" aria-label={t('components:pagination.ariaLabel') as string} gap={8} mt={4}>
36+
<HStack as="nav" aria-label={t('components:pagination.ariaLabel')} gap={8} mt={4}>
3737
<ButtonGroup isAttached variant="ghost">
3838
<PaginationButton
3939
icon={<LuSkipBack />}

hivemq-edge/src/frontend/src/components/PasswordInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const PasswordInput: FC<InputProps> = ({ register, options, ...rest }) => {
2828
h="1.75rem"
2929
size="sm"
3030
onClick={handleClick}
31-
aria-label={show ? (t('login.password.hide') as string) : (t('login.password.show') as string)}
31+
aria-label={show ? t('login.password.hide') : t('login.password.show')}
3232
>
3333
{show ? <BiHide /> : <BiShow />}
3434
</Button>

hivemq-edge/src/frontend/src/extensions/datahub/components/DataHubPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const DataHubPage: FC = () => {
1717

1818
return (
1919
<PageContainer
20-
title={t('page.title') as string}
21-
subtitle={t('page.description') as string}
20+
title={t('page.title')}
21+
subtitle={t('page.description')}
2222
cta={
2323
isMainPage &&
2424
hasDataHub && (

0 commit comments

Comments
 (0)