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