diff --git a/src/App.tsx b/src/App.tsx index 9c5c0ab..9ba8912 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1512,6 +1512,7 @@ function App() { )} + {userInfo && !userInfo?.name && ( - + {message.paymentFee ? t('core:payment', { postProcess: 'capitalizeFirstChar', @@ -3426,6 +3435,9 @@ function App() { id="alert-dialog-title" sx={{ textAlign: 'center', + color: theme.palette.text.primary, + fontWeight: 'bold', + opacity: 1, }} > {t('tutorial:important_info', { diff --git a/src/components/Apps/AppsDevModeHome.tsx b/src/components/Apps/AppsDevModeHome.tsx index db32248..f1225df 100644 --- a/src/components/Apps/AppsDevModeHome.tsx +++ b/src/components/Apps/AppsDevModeHome.tsx @@ -17,6 +17,7 @@ import { DialogContent, DialogTitle, Input, + useTheme, } from '@mui/material'; import { Add } from '@mui/icons-material'; import { QORTAL_APP_CONTEXT, getBaseApiReact } from '../../App'; @@ -41,6 +42,7 @@ export const AppsDevModeHome = ({ const [domain, setDomain] = useState('127.0.0.1'); const [port, setPort] = useState(''); const [selectedPreviewFile, setSelectedPreviewFile] = useState(null); + const theme = useTheme(); const { t } = useTranslation([ 'auth', 'core', @@ -470,7 +472,15 @@ export const AppsDevModeHome = ({ } }} > - + {t('core:action.add_custom_framework', { postProcess: 'capitalizeFirstChar', })} diff --git a/src/components/BuyQortInformation.tsx b/src/components/BuyQortInformation.tsx index c3519fa..a59d3ea 100644 --- a/src/components/BuyQortInformation.tsx +++ b/src/components/BuyQortInformation.tsx @@ -56,7 +56,15 @@ export const BuyQortInformation = ({ balance }) => { aria-labelledby="alert-dialog-title" aria-describedby="alert-dialog-description" > - + {t('core:action.get_qort', { postProcess: 'capitalizeFirstChar', })} diff --git a/src/components/Group/BlockedUsersModal.tsx b/src/components/Group/BlockedUsersModal.tsx index 487711e..e0a7b99 100644 --- a/src/components/Group/BlockedUsersModal.tsx +++ b/src/components/Group/BlockedUsersModal.tsx @@ -177,7 +177,14 @@ export const BlockedUsersModal = () => { aria-labelledby="alert-dialog-title" aria-describedby="alert-dialog-description" > - + {t('auth:blocked_users', { postProcess: 'capitalizeFirstChar' })} { aria-labelledby="alert-dialog-title" aria-describedby="alert-dialog-description" > - + {t('auth:message.generic.decide_block', { postProcess: 'capitalizeFirstChar', })} diff --git a/src/components/Group/ListOfGroupPromotions.tsx b/src/components/Group/ListOfGroupPromotions.tsx index 7f255b0..e04832d 100644 --- a/src/components/Group/ListOfGroupPromotions.tsx +++ b/src/components/Group/ListOfGroupPromotions.tsx @@ -864,7 +864,15 @@ export const ListOfGroupPromotions = () => { aria-labelledby="alert-dialog-title" aria-describedby="alert-dialog-description" > - + {t('group:action.promote_group', { postProcess: 'capitalizeFirstChar', })} diff --git a/src/components/Group/Settings.tsx b/src/components/Group/Settings.tsx index 7a3b5e9..4a3ae37 100644 --- a/src/components/Group/Settings.tsx +++ b/src/components/Group/Settings.tsx @@ -308,7 +308,15 @@ const ExportPrivateKey = ({ rawWallet }) => { aria-labelledby="alert-dialog-title" aria-describedby="alert-dialog-description" > - + {t('group:action.export_password', { postProcess: 'capitalizeFirstChar', })} diff --git a/src/components/Minting/Minting.tsx b/src/components/Minting/Minting.tsx index cddd67c..0992e57 100644 --- a/src/components/Minting/Minting.tsx +++ b/src/components/Minting/Minting.tsx @@ -573,9 +573,17 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => { }, }} > - + {t('group:message.generic.manage_minting', { - postProcess: 'capitalizeFirstChar', + postProcess: 'capitalizeAll', })} @@ -863,7 +871,15 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => { aria-labelledby="alert-dialog-title" aria-describedby="alert-dialog-description" > - + {isShowNext ? 'Confirmed' : 'Please Wait'} diff --git a/src/components/NotAuthenticated.tsx b/src/components/NotAuthenticated.tsx index 506116c..49cfa09 100644 --- a/src/components/NotAuthenticated.tsx +++ b/src/components/NotAuthenticated.tsx @@ -771,7 +771,15 @@ export const NotAuthenticated = ({ aria-describedby="alert-dialog-description" fullWidth > - + {t('auth:node.custom_many', { postProcess: 'capitalizeFirstChar' })} : @@ -1048,7 +1056,15 @@ export const NotAuthenticated = ({ aria-labelledby="alert-dialog-title" aria-describedby="alert-dialog-description" > - + {t('auth:apikey.enter', { postProcess: 'capitalizeFirstChar' })} diff --git a/src/components/RegisterName.tsx b/src/components/RegisterName.tsx index 9bc5f5c..c6f20a4 100644 --- a/src/components/RegisterName.tsx +++ b/src/components/RegisterName.tsx @@ -215,7 +215,15 @@ export const RegisterName = ({ aria-labelledby="alert-dialog-title" aria-describedby="alert-dialog-description" > - + {t('core:action.register_name', { postProcess: 'capitalizeAll', })} @@ -266,6 +274,7 @@ export const RegisterName = ({ color: theme.palette.text.primary, }} /> + {t('core:message.generic.name_registration', { balance: balance ?? 0, diff --git a/src/components/Theme/ThemeContext.tsx b/src/components/Theme/ThemeContext.tsx index 3ebace0..c964527 100644 --- a/src/components/Theme/ThemeContext.tsx +++ b/src/components/Theme/ThemeContext.tsx @@ -12,10 +12,15 @@ 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']); const defaultTheme = { id: 'default', - name: 'Default Theme', + name: t('core:theme.default', { + postProcess: 'capitalizeFirstChar', + }), light: lightThemeOptions.palette, dark: darkThemeOptions.palette, }; diff --git a/src/components/Theme/ThemeManager.tsx b/src/components/Theme/ThemeManager.tsx index f6b1551..98f18d9 100644 --- a/src/components/Theme/ThemeManager.tsx +++ b/src/components/Theme/ThemeManager.tsx @@ -15,6 +15,7 @@ import { Tabs, Tab, ListItemButton, + useTheme, } from '@mui/material'; import { Sketch } from '@uiw/react-color'; import DeleteIcon from '@mui/icons-material/Delete'; @@ -71,6 +72,7 @@ const validateTheme = (theme) => { }; export default function ThemeManager() { + const theme = useTheme(); const { userThemes, addUserTheme, setUserTheme, currentThemeId } = useThemeContext(); const [openEditor, setOpenEditor] = useState(false); @@ -295,7 +297,14 @@ export default function ThemeManager() { fullWidth maxWidth="md" > - + {themeDraft.id ? t('core:action.edit_theme', { postProcess: 'capitalizeFirstChar', diff --git a/src/components/Wallets.tsx b/src/components/Wallets.tsx index ae749d3..75a36ea 100644 --- a/src/components/Wallets.tsx +++ b/src/components/Wallets.tsx @@ -353,7 +353,15 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => { } }} > - + {t('auth:message.generic.type_seed', { postProcess: 'capitalizeFirstChar', })} diff --git a/src/i18n/locales/de/core.json b/src/i18n/locales/de/core.json index b6a908e..48c6b00 100644 --- a/src/i18n/locales/de/core.json +++ b/src/i18n/locales/de/core.json @@ -351,6 +351,7 @@ "theme": { "dark": "dunkel", "dark_mode": "Dunkler Modus", + "default": "default theme", "light": "Licht", "light_mode": "Lichtmodus", "manager": "Themenmanager", @@ -384,4 +385,4 @@ }, "website": "Webseite", "welcome": "Willkommen" -} \ No newline at end of file +} diff --git a/src/i18n/locales/en/core.json b/src/i18n/locales/en/core.json index ffcee9a..8270fe0 100644 --- a/src/i18n/locales/en/core.json +++ b/src/i18n/locales/en/core.json @@ -356,6 +356,7 @@ "theme": { "dark": "dark", "dark_mode": "dark mode", + "default": "default theme", "light": "light", "light_mode": "light mode", "manager": "theme Manager", diff --git a/src/i18n/locales/es/auth.json b/src/i18n/locales/es/auth.json index 2f98682..01bc74d 100644 --- a/src/i18n/locales/es/auth.json +++ b/src/i18n/locales/es/auth.json @@ -78,6 +78,7 @@ "choose_block": "Elija 'Bloquear TXS' o 'Todo' para bloquear los mensajes de chat", "congrats_setup": "Felicidades, ¡estás listo!", "decide_block": "Decide qué bloquear", + "downloading_encryption_keys": "downloading encryption keys", "name_address": "nombre o dirección", "no_account": "No hay cuentas guardadas", "no_minimum_length": "No hay requisito de longitud mínima", @@ -85,7 +86,7 @@ "fetching_admin_secret_key": "Llave secreta de los administradores de administradores", "fetching_group_secret_key": "Obtener publicaciones de Key Secret Group Secret", "last_encryption_date": "last encryption date: {{ date }} by {{ name }}", - "locating_encryption_keys": "locating encryption keys",,"downloading_encryption_keys": "downloading encryption keys", + "locating_encryption_keys": "locating encryption keys", "keep_secure": "Mantenga su archivo de cuenta seguro", "publishing_key": "Recordatorio: después de publicar la llave, tardará un par de minutos en aparecer. Por favor, solo espera.", "seedphrase_notice": "a SEEDPHRASE has been randomly generated in the background.", diff --git a/src/i18n/locales/es/core.json b/src/i18n/locales/es/core.json index d6310f0..ef5b4cb 100644 --- a/src/i18n/locales/es/core.json +++ b/src/i18n/locales/es/core.json @@ -353,8 +353,9 @@ "theme": { "dark": "oscuro", "dark_mode": "modo oscuro", + "default": "tema predeterminado", "light": "luz", - "light_mode": "modo de luz", + "light_mode": "modo claro", "manager": "gerente de tema", "name": "nombre del tema" }, diff --git a/src/i18n/locales/fr/auth.json b/src/i18n/locales/fr/auth.json index 3841f07..fbb7129 100644 --- a/src/i18n/locales/fr/auth.json +++ b/src/i18n/locales/fr/auth.json @@ -78,6 +78,7 @@ "choose_block": "Choisissez «Bloquer TXS» ou «All» pour bloquer les messages de chat", "congrats_setup": "Félicitations, vous êtes tous mis en place!", "decide_block": "décider quoi bloquer", + "downloading_encryption_keys": "downloading encryption keys", "name_address": "nom ou adresse", "no_account": "Aucun compte enregistré", "no_minimum_length": "il n'y a pas de durée minimale", @@ -85,7 +86,7 @@ "fetching_admin_secret_key": "Recherche la clé secrète des administrateurs", "fetching_group_secret_key": "Recherche de clés secrètes de groupe", "last_encryption_date": "last encryption date: {{ date }} by {{ name }}", - "locating_encryption_keys": "locating encryption keys",,"downloading_encryption_keys": "downloading encryption keys", + "locating_encryption_keys": "locating encryption keys", "keep_secure": "Gardez votre fichier de compte sécurisé", "publishing_key": "Rappel: Après avoir publié la clé, il faudra quelques minutes pour qu'il apparaisse. Veuillez juste attendre.", "seedphrase_notice": "a SEEDPHRASE has been randomly generated in the background.", diff --git a/src/i18n/locales/fr/core.json b/src/i18n/locales/fr/core.json index cd74696..85c4b43 100644 --- a/src/i18n/locales/fr/core.json +++ b/src/i18n/locales/fr/core.json @@ -354,8 +354,9 @@ "theme": { "dark": "sombre", "dark_mode": "mode sombre", + "default": "thème par défaut", "light": "lumière", - "light_mode": "mode léger", + "light_mode": "mode clair", "manager": "directeur de thème", "name": "nom de thème" }, diff --git a/src/i18n/locales/it/core.json b/src/i18n/locales/it/core.json index 79d1e0e..443475a 100644 --- a/src/i18n/locales/it/core.json +++ b/src/i18n/locales/it/core.json @@ -356,6 +356,7 @@ "theme": { "dark": "scuro", "dark_mode": "modalità scura", + "default": "tema di default", "light": "chiara", "light_mode": "modalità chiara", "manager": "manager tema", diff --git a/src/i18n/locales/ja/core.json b/src/i18n/locales/ja/core.json index e9ea702..26df517 100644 --- a/src/i18n/locales/ja/core.json +++ b/src/i18n/locales/ja/core.json @@ -353,6 +353,7 @@ "theme": { "dark": "暗い", "dark_mode": "ダークモード", + "default": "デフォルトのテーマ", "light": "ライト", "light_mode": "ライトモード", "manager": "テーママネージャー", diff --git a/src/i18n/locales/ru/core.json b/src/i18n/locales/ru/core.json index 6024759..45cf8ea 100644 --- a/src/i18n/locales/ru/core.json +++ b/src/i18n/locales/ru/core.json @@ -353,6 +353,7 @@ "theme": { "dark": "темный", "dark_mode": "темный режим", + "default": "тема по умолчанию", "light": "свет", "light_mode": "легкий режим", "manager": "Менеджер темы", diff --git a/src/i18n/locales/zh/core.json b/src/i18n/locales/zh/core.json index b5f2a6e..bbc5e63 100644 --- a/src/i18n/locales/zh/core.json +++ b/src/i18n/locales/zh/core.json @@ -353,6 +353,7 @@ "theme": { "dark": "黑暗的", "dark_mode": "黑暗模式", + "default": "默认主题", "light": "光", "light_mode": "光模式", "manager": "主题经理",