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
@@ -108,6 +108,7 @@ export const userSettingsTranslationRef: TranslationRef<
{
readonly 'featureFlags.title': 'Feature Flags';
readonly 'featureFlags.description': 'Please refresh the page when toggling feature flags';
readonly 'featureFlags.filterTitle': 'Filter';
readonly 'featureFlags.emptyFlags.title': 'No Feature Flags';
readonly 'featureFlags.emptyFlags.action.title': 'An example for how to add a feature flag is highlighted below:';
readonly 'featureFlags.emptyFlags.action.readMoreButtonTitle': 'Read More';
@@ -129,6 +130,8 @@ export const userSettingsTranslationRef: TranslationRef<
readonly 'signOutMenu.title': 'Sign Out';
readonly 'pinToggle.title': 'Pin Sidebar';
readonly 'pinToggle.description': 'Prevent the sidebar from collapsing';
readonly 'pinToggle.switchTitles.unpin': 'Unpin Sidebar';
readonly 'pinToggle.switchTitles.pin': 'Pin Sidebar';
readonly 'identityCard.title': 'Backstage Identity';
readonly 'identityCard.noIdentityTitle': 'No Backstage Identity';
readonly 'identityCard.userEntity': 'User Entity';
@@ -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',
},