mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-05-25 19:07:03 +00:00
Add default theme translation
This commit is contained in:
parent
83219cec26
commit
50d78815fa
@ -12,13 +12,11 @@ import {
|
||||
} from '@mui/material/styles';
|
||||
import { lightThemeOptions } from '../../styles/theme-light';
|
||||
import { darkThemeOptions } from '../../styles/theme-dark';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
const { t } = useTranslation(['auth', 'core', 'group', 'question', 'tutorial']);
|
||||
import i18n from '../../i18n/i18n';
|
||||
|
||||
const defaultTheme = {
|
||||
id: 'default',
|
||||
name: t('core:theme.default', {
|
||||
name: i18n.t('core:theme.default', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
}),
|
||||
light: lightThemeOptions.palette,
|
||||
|
@ -264,7 +264,7 @@ export default function ThemeManager() {
|
||||
{userThemes?.map((theme, index) => (
|
||||
<ListItemButton
|
||||
key={theme?.id || index}
|
||||
selected={theme?.id === currentThemeId}
|
||||
selected={theme?.id === currentThemeId} // TODO translate (current theme)
|
||||
>
|
||||
<ListItemText
|
||||
primary={`${theme?.name || `Theme ${index + 1}`} ${theme?.id === currentThemeId ? '(Current)' : ''}`}
|
||||
|
@ -288,7 +288,7 @@
|
||||
"logout": "sei sicuro di voler fare logout?",
|
||||
"new_user": "sei un nuovo utente?",
|
||||
"delete_chat_image": "vorresti eliminare la tua immagine di chat precedente?",
|
||||
"perform_transaction": "would you like to perform a {{action}} transaction?",
|
||||
"perform_transaction": "vuoi eseguire una transazione {{action}}?",
|
||||
"provide_thread": "si prega di fornire un titolo al thread",
|
||||
"publish_app": "vorresti pubblicare questa app?",
|
||||
"publish_avatar": "vorresti pubblicare un avatar?",
|
||||
|
Loading…
x
Reference in New Issue
Block a user