fix: update translations

Signed-off-by: mario ma <mario.ma.node@gmail.com>
This commit is contained in:
mario ma
2025-04-01 23:05:59 +08:00
parent f550908c01
commit 0255fe402f
4 changed files with 14 additions and 3 deletions
@@ -107,7 +107,7 @@ export const UserSettingsFeatureFlags = () => {
{featureFlags.length >= 10 && (
<Grid item xs={6} md={4}>
<TextField
label="Filter"
label={t('featureFlags.filterTitle')}
style={{ display: 'flex', justifyContent: 'flex-end' }}
inputRef={ref => ref && ref.focus()}
InputProps={{
@@ -38,7 +38,11 @@ export const UserSettingsPinToggle = () => {
<Tooltip
placement="top"
arrow
title={`${isPinned ? 'Unpin' : 'Pin'} Sidebar`}
title={
isPinned
? t('pinToggle.switchTitles.unpin')
: t('pinToggle.switchTitles.pin')
}
>
<Switch
color="primary"
+5 -1
View File
@@ -42,6 +42,10 @@ export const userSettingsTranslationRef = createTranslationRef({
pinToggle: {
title: 'Pin Sidebar',
description: 'Prevent the sidebar from collapsing',
switchTitles: {
unpin: 'Unpin Sidebar',
pin: 'Pin Sidebar',
},
},
identityCard: {
title: 'Backstage Identity',
@@ -96,6 +100,7 @@ export const userSettingsTranslationRef = createTranslationRef({
readMoreButtonTitle: 'Read More',
},
},
filterTitle: 'Filter',
flagItem: {
title: {
disable: 'Disable',
@@ -107,7 +112,6 @@ export const userSettingsTranslationRef = createTranslationRef({
},
},
},
general: {},
settingsLayout: {
title: 'Settings',
},