mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-05-25 19:07:03 +00:00
Add missing translations
This commit is contained in:
parent
5ddd01d10c
commit
c1f067c7fc
@ -2,9 +2,12 @@ import React, { useState } from 'react';
|
||||
import QRCode from 'react-qr-code';
|
||||
import { TextP } from '../styles/App-styles';
|
||||
import { Box, Typography } from '@mui/material';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export const AddressQRCode = ({ targetAddress }) => {
|
||||
const [open, setOpen] = useState(false);
|
||||
const { t } = useTranslation(['auth', 'core', 'group', 'question']);
|
||||
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
@ -24,7 +27,13 @@ export const AddressQRCode = ({ targetAddress }) => {
|
||||
setOpen((prev) => !prev);
|
||||
}}
|
||||
>
|
||||
{open ? 'Hide QR code' : 'See QR code'}
|
||||
{open
|
||||
? t('core:action.hide_qr_code', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})
|
||||
: t('core:action.see_qr_code', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
{open && (
|
||||
@ -55,7 +64,7 @@ export const AddressQRCode = ({ targetAddress }) => {
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Your address
|
||||
{t('core:address_your', { postProcess: 'capitalizeFirstChar' })}
|
||||
</TextP>
|
||||
<QRCode
|
||||
value={targetAddress} // Your address here
|
||||
|
@ -1,5 +1,6 @@
|
||||
import i18n from 'i18next';
|
||||
import { initReactI18next } from 'react-i18next';
|
||||
import HttpBackend from 'i18next-http-backend';
|
||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
import {
|
||||
capitalizeAll,
|
||||
@ -15,7 +16,7 @@ export const supportedLanguages = {
|
||||
it: { name: 'Italiano', flag: '🇮🇹' },
|
||||
ru: { name: 'Русский', flag: '🇷🇺' },
|
||||
ja: { name: '日本語', flag: '🇯🇵' },
|
||||
zh_CN: { name: '中文', flag: '🇨🇳' },
|
||||
zh: { name: '中文', flag: '🇨🇳' },
|
||||
};
|
||||
|
||||
// Load all JSON files under locales/**/*
|
||||
@ -37,6 +38,7 @@ for (const path in modules) {
|
||||
}
|
||||
|
||||
i18n
|
||||
.use(HttpBackend)
|
||||
.use(initReactI18next)
|
||||
.use(LanguageDetector)
|
||||
.use(capitalizeAll as any)
|
||||
@ -45,8 +47,11 @@ i18n
|
||||
.init({
|
||||
resources,
|
||||
fallbackLng: 'en',
|
||||
lng: navigator.language,
|
||||
lng: localStorage.getItem('i18nextLng') || 'en',
|
||||
supportedLngs: Object.keys(supportedLanguages),
|
||||
backend: {
|
||||
loadPath: '/locales/{{lng}}/{{ns}}.json',
|
||||
},
|
||||
ns: ['auth', 'core', 'group', 'question', 'tutorial'],
|
||||
defaultNS: 'core',
|
||||
interpolation: { escapeValue: false },
|
||||
|
@ -42,6 +42,7 @@
|
||||
"get_qort": "get QORT",
|
||||
"get_qort_trade": "get QORT at Q-Trade",
|
||||
"hide": "hide",
|
||||
"hide_qr_code": "hide QR code",
|
||||
"import": "import",
|
||||
"import_theme": "import theme",
|
||||
"invite": "invite",
|
||||
@ -77,6 +78,7 @@
|
||||
"search_apps": "search for apps",
|
||||
"search_groups": "search for groups",
|
||||
"search_chat_text": "search chat text",
|
||||
"see_qr_code": "see QR code",
|
||||
"select_app_type": "select App Type",
|
||||
"select_category": "select Category",
|
||||
"select_name_app": "select Name/App",
|
||||
@ -96,6 +98,7 @@
|
||||
"update_app": "update your app",
|
||||
"vote": "vote"
|
||||
},
|
||||
"address_your": "your address",
|
||||
"admin": "admin",
|
||||
"admin_other": "admins",
|
||||
"all": "all",
|
||||
|
@ -96,6 +96,7 @@
|
||||
"update_app": "Mettez à jour votre application",
|
||||
"vote": "voter"
|
||||
},
|
||||
"address_your": "ton adress",
|
||||
"admin": "administrer",
|
||||
"admin_other": "administrateurs",
|
||||
"all": "tous",
|
||||
@ -384,4 +385,4 @@
|
||||
},
|
||||
"website": "site web",
|
||||
"welcome": "accueillir"
|
||||
}
|
||||
}
|
||||
|
@ -10,12 +10,12 @@
|
||||
"account": "Aggiungi account",
|
||||
"seed_phrase": "Aggiungi seme-frase"
|
||||
},
|
||||
"authenticate": "autenticare",
|
||||
"authenticate": "autenticazione",
|
||||
"block": "bloccare",
|
||||
"block_all": "Blocca tutto",
|
||||
"block_data": "Blocca i dati QDN",
|
||||
"block_name": "Nome del blocco",
|
||||
"block_txs": "Blocca TSX",
|
||||
"block_all": "blocca tutto",
|
||||
"block_data": "blocca i dati QDN",
|
||||
"block_name": "nome del blocco",
|
||||
"block_txs": "blocca TSX",
|
||||
"fetch_names": "Nomi di recupero",
|
||||
"copy_address": "Indirizzo di copia",
|
||||
"create_account": "creare un account",
|
||||
|
@ -41,7 +41,8 @@
|
||||
"export": "esportare",
|
||||
"get_qort": "Ottieni Qort",
|
||||
"get_qort_trade": "Ottieni Qort a Q-Trade",
|
||||
"hide": "nascondere",
|
||||
"hide": "nascondi",
|
||||
"hide_qr_code": "nascondi QR code",
|
||||
"import": "importare",
|
||||
"import_theme": "Tema di importazione",
|
||||
"invite": "invitare",
|
||||
@ -65,9 +66,9 @@
|
||||
"post": "inviare",
|
||||
"post_message": "Messaggio post",
|
||||
"publish": "pubblicare",
|
||||
"publish_app": "Pubblica la tua app",
|
||||
"publish_comment": "Pubblica un commento",
|
||||
"register_name": "Nome del registro",
|
||||
"publish_app": "pubblica la tua app",
|
||||
"publish_comment": "pubblica un commento",
|
||||
"register_name": "registra nome",
|
||||
"remove": "rimuovere",
|
||||
"remove_reaction": "rimuovere la reazione",
|
||||
"return_apps_dashboard": "Torna alla dashboard di app",
|
||||
@ -77,6 +78,7 @@
|
||||
"search_apps": "Cerca app",
|
||||
"search_groups": "Cerca gruppi",
|
||||
"search_chat_text": "Cerca il testo della chat",
|
||||
"see_qr_code": "vedi QR code",
|
||||
"select_app_type": "Seleziona il tipo di app",
|
||||
"select_category": "Seleziona categoria",
|
||||
"select_name_app": "Seleziona nome/app",
|
||||
@ -96,6 +98,7 @@
|
||||
"update_app": "Aggiorna la tua app",
|
||||
"vote": "votare"
|
||||
},
|
||||
"address_your": "il tuo indirizzo",
|
||||
"admin": "amministratore",
|
||||
"admin_other": "amministratori",
|
||||
"all": "Tutto",
|
||||
|
Loading…
x
Reference in New Issue
Block a user