Sections Label Localization Support and Improvements

This commit is contained in:
cyberalby2 2026-03-16 15:00:09 +01:00
parent 99dbcb44c9
commit 53b7d77d5c
3 changed files with 8 additions and 4 deletions

View file

@ -704,6 +704,8 @@
"made_with_love": "Made with ❤️ by Tapframe and friends", "made_with_love": "Made with ❤️ by Tapframe and friends",
"sections": { "sections": {
"information": "INFORMATION", "information": "INFORMATION",
"general":"GENERAL",
"data":"DATA",
"account": "ACCOUNT", "account": "ACCOUNT",
"theme": "THEME", "theme": "THEME",
"layout": "LAYOUT", "layout": "LAYOUT",

View file

@ -689,6 +689,8 @@
"made_with_love": "Fatto con ❤️ da Tapframe e amici", "made_with_love": "Fatto con ❤️ da Tapframe e amici",
"sections": { "sections": {
"information": "INFORMAZIONI", "information": "INFORMAZIONI",
"general":"GENERALE",
"data":"DATI",
"account": "ACCOUNT", "account": "ACCOUNT",
"theme": "TEMA", "theme": "TEMA",
"layout": "LAYOUT", "layout": "LAYOUT",
@ -701,7 +703,7 @@
"audio_subtitles": "AUDIO E SOTTOTITOLI", "audio_subtitles": "AUDIO E SOTTOTITOLI",
"media": "MEDIA", "media": "MEDIA",
"notifications": "NOTIFICHE", "notifications": "NOTIFICHE",
"testing": "TEST", "testing": "STRUMENTI PER SVILUPPATORI",
"danger_zone": "ZONA PERICOLOSA", "danger_zone": "ZONA PERICOLOSA",
"introdb_contribution":"CONTRIBUTI INTRODB" "introdb_contribution":"CONTRIBUTI INTRODB"
}, },

View file

@ -438,7 +438,7 @@ const SettingsScreen: React.FC = () => {
case 'appearance': case 'appearance':
return ( return (
<> <>
<SettingsCard title="GENERAL" isTablet={isTablet}> <SettingsCard title={t('settings.sections.general')} isTablet={isTablet}>
<SettingItem <SettingItem
title={t('settings.language')} title={t('settings.language')}
description={t(`settings.${LOCALES.find(l => l.code === i18n.language)?.key}`)} description={t(`settings.${LOCALES.find(l => l.code === i18n.language)?.key}`)}
@ -771,7 +771,7 @@ const SettingsScreen: React.FC = () => {
(settingsConfig?.categories?.['integrations']?.visible !== false) || (settingsConfig?.categories?.['integrations']?.visible !== false) ||
(settingsConfig?.categories?.['playback']?.visible !== false) (settingsConfig?.categories?.['playback']?.visible !== false)
) && ( ) && (
<SettingsCard title="GENERAL"> <SettingsCard title={t('settings.sections.general')}>
<SettingItem <SettingItem
title={t('settings.language')} title={t('settings.language')}
description={t(`settings.${LOCALES.find(l => l.code === i18n.language)?.key}`) description={t(`settings.${LOCALES.find(l => l.code === i18n.language)?.key}`)
@ -825,7 +825,7 @@ const SettingsScreen: React.FC = () => {
(settingsConfig?.categories?.['backup']?.visible !== false) || (settingsConfig?.categories?.['backup']?.visible !== false) ||
(settingsConfig?.categories?.['updates']?.visible !== false) (settingsConfig?.categories?.['updates']?.visible !== false)
) && ( ) && (
<SettingsCard title="DATA"> <SettingsCard title={t('settings.sections.data')}>
{(settingsConfig?.categories?.['backup']?.visible !== false) && ( {(settingsConfig?.categories?.['backup']?.visible !== false) && (
<SettingItem <SettingItem
title={t('settings.backup_restore')} title={t('settings.backup_restore')}