Refactor and fix some typos

This commit is contained in:
Nicola Benaglia 2025-05-24 23:23:18 +02:00
parent ee573743cf
commit 301d7d6f6a
5 changed files with 24 additions and 10 deletions

View File

@ -466,7 +466,7 @@ export const ListOfGroupPromotions = () => {
fontSize: '12px',
}}
>
{t('group.action.add_promotion', {
{t('group:action.add_promotion', {
postProcess: 'capitalizeFirstChar',
})}
</Button>
@ -474,6 +474,7 @@ export const ListOfGroupPromotions = () => {
<Spacer height="10px" />
</Box>
<Box
sx={{
bgcolor: 'background.paper',
@ -515,7 +516,7 @@ export const ListOfGroupPromotions = () => {
color: 'rgba(255, 255, 255, 0.2)',
}}
>
{t('group.message.generic.no_display', {
{t('group:message.generic.no_display', {
postProcess: 'capitalizeFirstChar',
})}
</Typography>
@ -927,7 +928,7 @@ export const ListOfGroupPromotions = () => {
<Spacer height="20px" />
<TextField
label={t('core:promotion_text', {
label={t('core:message.promotion_text', {
postProcess: 'capitalizeFirstChar',
})}
variant="filled"

View File

@ -1,9 +1,17 @@
import { Box, useTheme } from '@mui/material';
import { Box, CircularProgress, useTheme } from '@mui/material';
import { useState } from 'react';
import { TextP } from '../styles/App-styles';
import {
CustomButton,
CustomInput,
CustomLabel,
TextP,
} from '../styles/App-styles';
import { Spacer } from '../common/Spacer';
import { getFee } from '../background/background.ts';
import { useTranslation } from 'react-i18next';
import BoundedNumericTextField from '../common/BoundedNumericTextField.tsx';
import { PasswordField } from './PasswordField/PasswordField.tsx';
import { ErrorText } from './ErrorText/ErrorText.tsx';
export const QortPayment = ({ balance, show, onSuccess, defaultPaymentTo }) => {
const theme = useTheme();

View File

@ -215,7 +215,11 @@ export const RegisterName = ({
aria-labelledby="alert-dialog-title"
aria-describedby="alert-dialog-description"
>
<DialogTitle id="alert-dialog-title">{'Register name'}</DialogTitle>
<DialogTitle id="alert-dialog-title">
{t('core:action.register_name', {
postProcess: 'capitalizeAll',
})}
</DialogTitle>
<DialogContent>
<Box
@ -236,6 +240,7 @@ export const RegisterName = ({
postProcess: 'capitalizeFirstChar',
})}
</Label>
<TextField
autoComplete="off"
autoFocus

View File

@ -23,7 +23,7 @@
"close": "chiudi",
"close_chat": "chiudi la chat diretta",
"continue": "continua",
"continue_logout": "continua a logout",
"continue_logout": "conferma il logout",
"copy_link": "copia link",
"create_apps": "crea app",
"create_file": "crea file",
@ -90,7 +90,7 @@
"start_minting": "inizia a mellire",
"start_typing": "inizia a digitare qui ...",
"trade_qort": "scambia qort",
"transfer_qort": "trasferisci Qort",
"transfer_qort": "trasferisci QORT",
"unpin": "rimuovi pin",
"unpin_app": "rimuovi pin app",
"unpin_from_dashboard": "rimuovi dalla dashboard",
@ -285,7 +285,7 @@
"promotion_text": "testo di promozione",
"question": {
"accept_vote_on_poll": "accettate questa transazione vota_on_poll? I sondaggi sono pubblici!",
"logout": "sei sicuro di voler logout?",
"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?",

View File

@ -106,7 +106,7 @@
"private_key_copied": "copiata a chiave privata",
"provide_message": "si prega di fornire un primo messaggio al thread",
"secure_place": "mantieni la chiave privata in un luogo sicuro. Non condividerla!",
"setting_group": "impostazione del gruppo ... per favore aspetta."
"setting_group": "impostazione gruppo. Attendere, per favore."
},
"error": {
"access_name": "impossibile inviare un messaggio senza accesso al tuo nome",