Update translated text in zap-modal

merge-requests/3333/head
danidfra 2025-03-18 11:31:11 -03:00
rodzic 6fb35188a9
commit f0c7be9b01
5 zmienionych plików z 11 dodań i 10 usunięć

Wyświetl plik

@ -24,6 +24,7 @@ import Text from 'soapbox/components/ui/text.tsx';
import { usePaymentMethod } from 'soapbox/features/zap/usePaymentMethod.ts';
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch.ts';
import { emojifyText } from 'soapbox/utils/emojify.tsx';
import { capitalize } from 'soapbox/utils/strings.ts';
import PaymentButton from './zap-button/payment-button.tsx';
@ -46,8 +47,8 @@ interface IPayRequestForm {
const closeIcon = xIcon;
const messages = defineMessages({
zap_button_rounded: { id: 'zap.button.text.rounded', defaultMessage: 'Zap {amount}K sats' },
zap_button: { id: 'payment_method.button.text.raw', defaultMessage: 'Zap {amount} sats' },
zap_button_rounded: { id: 'zap.button.text.rounded', defaultMessage: '{method} {amount}K sats' },
zap_button: { id: 'payment_method.button.text.raw', defaultMessage: '{method} {amount} sats' },
zap_commentPlaceholder: { id: 'payment_method.comment_input.placeholder', defaultMessage: 'Optional comment' },
});
@ -106,9 +107,9 @@ const PayRequestForm = ({ account, status, onClose }: IPayRequestForm) => {
const renderPaymentButtonText = () => {
if (amount >= 1000) {
return intl.formatMessage(messages.zap_button_rounded, { amount: Math.round((amount / 1000) * 10) / 10 });
return intl.formatMessage(messages.zap_button_rounded, { amount: Math.round((amount / 1000) * 10) / 10, method: isCashu ? 'Nutzap' : capitalize(paymentMethod) });
}
return intl.formatMessage(messages.zap_button, { amount: amount });
return intl.formatMessage(messages.zap_button, { amount: amount, method: isCashu ? 'Nutzap' : capitalize(paymentMethod) });
};
useEffect(() => {

Wyświetl plik

@ -1727,8 +1727,8 @@
"video.play": "Play",
"video.unmute": "Unmute sound",
"who_to_follow.title": "People To Follow",
"payment_method.button.text.raw": "Zap {amount} sats",
"zap.button.text.rounded": "Zap {amount}K sats",
"payment_method.button.text.raw": "{method} {amount} sats",
"zap.button.text.rounded": "{method} {amount}K sats",
"payment_method.comment_input.placeholder": "Optional comment",
"zap.finish": "Finish",
"zap.next": "Next",

Wyświetl plik

@ -1626,7 +1626,7 @@
"video.play": "Reproducir",
"video.unmute": "Dejar de silenciar sonido",
"who_to_follow.title": "Personas a seguir",
"payment_method.button.text.raw": "Zap {amount} sats",
"payment_method.button.text.raw": "{method} {amount} sats",
"payment_method.comment_input.placeholder": "Comentario opcional",
"zap.open_wallet": "Abrir Wallet",
"zap.send_to": "Enviar zaps a {target}",

Wyświetl plik

@ -1679,8 +1679,8 @@
"video.play": "Seinn",
"video.unmute": "Fuaim gan iomrá",
"who_to_follow.title": "Daoine le Leanúint",
"payment_method.button.text.raw": "Suíonn Zap {amount}",
"zap.button.text.rounded": "Zap {amount}K shuíonn",
"payment_method.button.text.raw": "Suíonn {method} {amount}",
"zap.button.text.rounded": "{method} {amount}K shuíonn",
"payment_method.comment_input.placeholder": "Nóta roghnach",
"zap.finish": "Críochnaigh",
"zap.next": "Ar Aghaidh",

Wyświetl plik

@ -1635,7 +1635,7 @@
"video.play": "Reproduzir",
"video.unmute": "Reativar som",
"who_to_follow.title": "Quem seguir",
"payment_method.button.text.raw": "Zap {amount} sats",
"payment_method.button.text.raw": "{method} {amount} sats",
"payment_method.comment_input.placeholder": "Comentário opcional",
"zap.open_wallet": "Abrir Carteira",
"zap.send_to": "Enviar zaps para {target}",