Move question into message.question

This commit is contained in:
Nicola Benaglia 2025-05-17 14:15:34 +02:00
parent e125b8edb3
commit 5ba51b672f
26 changed files with 236 additions and 90 deletions

View File

@ -178,7 +178,7 @@ export const AppPublish = ({ names, categories }) => {
const fee = await getFee('ARBITRARY');
await show({
message: t('core:question.publish_app', {
message: t('core:message.question.publish_app', {
postProcess: 'capitalizeFirst',
}),
publishFee: fee.fee + ' QORT',

View File

@ -113,7 +113,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
const fee = await getFee('CREATE_POLL');
await show({
message: t('core:question.rate_app', {
message: t('core:message.question.rate_app', {
rate: newValue,
postProcess: 'capitalizeFirst',
}),

View File

@ -192,7 +192,7 @@ export const AppsPrivate = ({ myName }) => {
const fee = await getFee('ARBITRARY');
await show({
message: t('core:question.publish_app', {
message: t('core:message.question.publish_app', {
postProcess: 'capitalizeFirst',
}),
publishFee: fee.fee + ' QORT',

View File

@ -132,7 +132,7 @@ export const AdminSpaceInner = ({
const fee = await getFee('ARBITRARY');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'ARBITRARY',
postProcess: 'capitalizeFirst',
}),

View File

@ -137,7 +137,7 @@ export const AnnouncementDiscussion = ({
pauseAllQueues();
const fee = await getFee('ARBITRARY');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'ARBITRARY',
postProcess: 'capitalizeFirst',
}),

View File

@ -851,7 +851,7 @@ export const ChatGroup = ({
const fee = await getFee('ARBITRARY');
await show({
publishFee: fee.fee + ' QORT',
message: t('core:question.delete_chat_image', {
message: t('core:message.question.delete_chat_image', {
postProcess: 'capitalizeFirst',
}),
});

View File

@ -126,7 +126,7 @@ export const CreateCommonSecret = ({
const fee = await getFee('ARBITRARY');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'ARBITRARY',
postProcess: 'capitalizeFirst',
}),

View File

@ -302,7 +302,7 @@ export const GroupAnnouncements = ({
const fee = await getFee('ARBITRARY');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'ARBITRARY',
postProcess: 'capitalizeFirst',
}),

View File

@ -89,7 +89,7 @@ export const GroupAvatar = ({
);
await show({
message: t('core:question.publish_avatar', {
message: t('core:message.question.publish_avatar', {
postProcess: 'capitalizeFirst',
}),
publishFee: fee.fee + ' QORT',

View File

@ -70,7 +70,7 @@ export const JoinGroup = () => {
const fee = await getFee('JOIN_GROUP');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'JOIN_GROUP',
postProcess: 'capitalizeFirst',
}),

View File

@ -118,7 +118,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
const fee = await getFee('CREATE_GROUP');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'CREATE_GROUP',
postProcess: 'capitalizeFirst',
}),

View File

@ -113,7 +113,7 @@ export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
const fee = await getFee('JOIN_GROUP');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'JOIN_GROUP',
postProcess: 'capitalizeFirst',
}),

View File

@ -182,7 +182,7 @@ export const NewThread = ({
const missingFields: string[] = [];
if (!isMessage && !threadTitle) {
errorMsg = t('core:question.provide_thread', {
errorMsg = t('core:message.question.provide_thread', {
postProcess: 'capitalizeFirst',
});
}
@ -229,7 +229,7 @@ export const NewThread = ({
feeToShow = +feeToShow * 2;
}
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'ARBITRARY',
postProcess: 'capitalizeFirst',
}),

View File

@ -17,7 +17,7 @@ export const InviteMember = ({ groupId, setInfoSnack, setOpenSnack, show }) => {
const fee = await getFee('GROUP_INVITE');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'GROUP_INVITE',
postProcess: 'capitalizeFirst',
}),

View File

@ -88,7 +88,7 @@ export const ListOfBans = ({ groupId, setInfoSnack, setOpenSnack, show }) => {
try {
const fee = await getFee('CANCEL_GROUP_BAN');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'CANCEL_GROUP_BAN',
postProcess: 'capitalizeFirst',
}),

View File

@ -276,7 +276,7 @@ export const ListOfGroupPromotions = () => {
const groupId = group.groupId;
const fee = await getFee('JOIN_GROUP');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'JOIN_GROUP',
postProcess: 'capitalizeFirst',
}),

View File

@ -94,7 +94,7 @@ export const ListOfInvites = ({
const fee = await getFee('CANCEL_GROUP_INVITE');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'CANCEL_GROUP_INVITE',
postProcess: 'capitalizeFirst',
}),

View File

@ -97,7 +97,7 @@ export const ListOfJoinRequests = ({
const fee = await getFee('GROUP_INVITE');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'GROUP_INVITE',
postProcess: 'capitalizeFirst',
}),

View File

@ -59,7 +59,7 @@ const ListOfMembers = ({
try {
const fee = await getFee('GROUP_KICK');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'GROUP_KICK',
postProcess: 'capitalizeFirst',
}),
@ -117,7 +117,7 @@ const ListOfMembers = ({
const fee = await getFee('GROUP_BAN');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'GROUP_BAN',
postProcess: 'capitalizeFirst',
}),
@ -177,7 +177,7 @@ const ListOfMembers = ({
try {
const fee = await getFee('ADD_GROUP_ADMIN');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'ADD_GROUP_ADMIN',
postProcess: 'capitalizeFirst',
}),
@ -234,7 +234,7 @@ const ListOfMembers = ({
try {
const fee = await getFee('REMOVE_GROUP_ADMIN');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'REMOVE_GROUP_ADMIN',
postProcess: 'capitalizeFirst',
}),

View File

@ -84,7 +84,7 @@ export const ManageMembers = ({
setIsLoadingLeave(true);
const fee = await getFee('LEAVE_GROUP');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'LEAVE_GROUP',
postProcess: 'capitalizeFirst',
}),

View File

@ -99,7 +99,7 @@ export const UserListOfInvites = ({
const fee = await getFee('JOIN_GROUP');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
action: 'JOIN_GROUP',
postProcess: 'capitalizeFirst',
}),

View File

@ -301,7 +301,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
const createRewardShare = useCallback(async (publicKey, recipient) => {
const fee = await getFee('REWARD_SHARE');
await show({
message: t('core:question.perform_transaction', {
message: t('core:message.question.perform_transaction', {
// TODO move from group into core namespace
action: 'REWARD_SHARE',
postProcess: 'capitalizeFirst',

View File

@ -127,7 +127,7 @@ export const RegisterName = ({
const fee = await getFee('REGISTER_NAME');
await show({
message: t('core:question.register_name', {
message: t('core:message.question.register_name', {
postProcess: 'capitalizeFirst',
}),
publishFee: fee.fee + ' QORT',

View File

@ -424,7 +424,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
fontSize: '14px',
}}
>
{t('core:question.reset_qdn', {
{t('core:message.question.reset_qdn', {
postProcess: 'capitalizeFirst',
})}
</Typography>
@ -461,7 +461,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{' '}
{t('core:question.reset_pinned', {
{t('core:message.question.reset_pinned', {
postProcess: 'capitalizeFirst',
})}
</Typography>
@ -495,7 +495,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
fontSize: '14px',
}}
>
{t('core:question.overwrite_changes', {
{t('core:message.question.overwrite_changes', {
postProcess: 'capitalizeFirst',
})}
</Typography>

View File

@ -206,7 +206,18 @@
},
"question": {
"logout": "are you sure you would like to logout?",
"new_user": "are you a new user?"
"new_user": "are you a new user?",
"delete_chat_image": "would you like to delete your previous chat image?",
"perform_transaction": "would you like to perform a {{action}} transaction?",
"provide_thread": "please provide a thread title",
"publish_app": "would you like to publish this app?",
"publish_avatar": "would you like to publish an avatar?",
"publish_qdn": "would you like to publish your settings to QDN (encrypted)?",
"overwrite_changes": "the app was unable to download your existing QDN-saved pinned apps. Would you like to overwrite those changes?",
"rate_app": "would you like to rate this app a rating of {{ rate }}?. It will create a POLL tx.",
"register_name": "would you like to register this name?",
"reset_pinned": "don't like your current local changes? Would you like to reset to the default pinned apps?",
"reset_qdn": "don't like your current local changes? Would you like to reset to your saved QDN pinned apps?"
},
"status": {
"minting": "(minting)",
@ -242,19 +253,6 @@
"q_manager": "q-manager",
"q_sandbox": "q-Sandbox"
},
"question": {
"delete_chat_image": "would you like to delete your previous chat image?",
"perform_transaction": "would you like to perform a {{action}} transaction?",
"provide_thread": "please provide a thread title",
"publish_app": "would you like to publish this app?",
"publish_avatar": "would you like to publish an avatar?",
"publish_qdn": "would you like to publish your settings to QDN (encrypted)?",
"overwrite_changes": "the app was unable to download your existing QDN-saved pinned apps. Would you like to overwrite those changes?",
"rate_app": "would you like to rate this app a rating of {{ rate }}?. It will create a POLL tx.",
"register_name": "would you like to register this name?",
"reset_pinned": "don't like your current local changes? Would you like to reset to the default pinned apps?",
"reset_qdn": "don't like your current local changes? Would you like to reset to your saved QDN pinned apps?"
},
"server": "server",
"settings": "settings",
"sort": {

View File

@ -1,41 +1,98 @@
{
"action": {
"add": "aggiungi",
"add_custom_framework": "aggiungi custom framework",
"add_reaction": "adaggiungid reazione",
"accept": "accetta",
"access": "accedi",
"backup_account": "esegui backup account",
"backup_wallet": "esegui backup portafoglio",
"cancel": "annulla",
"cancel_invitation": "annulla invito",
"backup_wallet": "esegui backup wallet",
"cancel": "cancella",
"cancel_invitation": "cancella invito",
"change": "cambia",
"change_avatar": "cambia avatar",
"change_file": "cambia file",
"change_language": "cambia lingua",
"choose": "scegli",
"choose_file": "scegli file",
"choose_image": "scegli immagine",
"close": "chiudi",
"close_chat": "chiudi Chat Diretta",
"continue": "continua",
"continue_logout": "continua con il logout",
"create_thread": "crea discussione",
"decline": "rifiuta",
"decrypt": "decifra",
"continue_logout": "continua il logout",
"copy_link": "copia link",
"create_apps": "crea apps",
"create_file": "crea file",
"create_thread": "crea thread",
"choose_logo": "scegli a logo",
"choose_name": "scegli a name",
"decline": "declina",
"decrypt": "decripta",
"disable_enter": "disabilita invio",
"download": "download",
"edit": "modifica",
"enter_name": "inserisci un nome",
"export": "esporta",
"get_qort": "ottieni QORT in Q-Trade",
"hide": "nascondi",
"import": "importa",
"invite": "invita",
"join": "unisciti",
"logout": "esci",
"leave_comment": "lascia un commento",
"load_announcements": "load older announcements",
"login": "login",
"logout": "logout",
"new": {
"post": "nuovo post",
"thread": "nuova discussione"
},
"notify": "notifica",
"post": "pubblica",
"post_message": "invia messaggio"
"notify": "notify",
"open": "open",
"pin": "pin",
"pin_app": "pin app",
"pin_from_dashboard": "pin from dashboard",
"post": "post",
"post_message": "post message",
"publish": "publish",
"publish_app": "publish your app",
"publish_comment": "publish comment",
"register_name": "register name",
"remove": "remove",
"remove_reaction": "remove reaction",
"return_apps_dashboard": "return to Apps Dashboard",
"save": "save",
"search": "search",
"search_apps": "search for apps",
"select_app_type": "select App Type",
"select_category": "select Category",
"select_name_app": "select Name/App",
"set_avatar": "set avatar",
"start_minting": "start minting",
"start_typing": "start typing here...",
"transfer_qort": "Transfer QORT",
"unpin": "unpin",
"unpin_app": "unpin app",
"unpin_from_dashboard": "unpin from dashboard",
"update": "update",
"update_app": "update your app"
},
"admin": "amministratore",
"admin": "admin",
"all": "all",
"api": "API",
"app": "app",
"app_name": "app name",
"app_service_type": "app service type",
"apps_dashboard": "apps Dashboard",
"apps_official": "official Apps",
"category": "category",
"category_other": "categories",
"core": {
"block_height": "altezza blocco",
"information": "informazioni core",
"peers": "peer connessi",
"version": "versione core"
},
"domain": "domain",
"ui": {
"version": "versione UI"
},
@ -44,27 +101,123 @@
"one": "uno"
},
"description": "descrizione",
"downloading_qdn": "scaricamento da QDN",
"devmode_apps": "dev Mode Apps",
"directory": "directory",
"downloading_qdn": "download da QDN",
"fee": {
"payment": "commissione di pagamento",
"publish": "commissione di pubblicazione"
},
"for": "per",
"general_settings": "impostazioni generali",
"last_height": "ultima altezza",
"identifier": "identificatore",
"last_height": "altezza ultima",
"level": "livello",
"library": "libreria",
"list": {
"invite": "lista inviti",
"join_request": "lista richieste di adesione",
"member": "lista membri"
},
"loading": "caricamento...",
"loading_posts": "caricamento post... attendere.",
"message_us": "contattaci su Telegram o Discord se hai bisogno di 4 QORT per iniziare a chattare senza limitazioni",
"loading": {
"announcements": "annunci",
"generic": "caricamento...",
"chat": "caricamento chat... attendere, per favore.",
"comments": "caricamento commenti... attendere, per favore.",
"posts": "caricamento post... attendere, per favore."
},
"message_us": "please message us on Telegram or Discord if you need 4 QORT to start chatting without any limitations",
"message": {
"error": {
"generic": "si è verificato un errore",
"incorrect_password": "password errata",
"missing_field": "manca: {{ field }}",
"save_qdn": "impossibile salvare su QDN"
"address_not_found": "your address was not found",
"app_need_name": "your app needs a name",
"file_too_large": "file {{ filename }} is too large. Max size allowed is {{ size }} MB.",
"generic": "an error occurred",
"invalid_signature": "invalid signature",
"invalid_zip": "invalid zip",
"message_loading": "error loading message.",
"message_size": "your message size is of {{ size }} bytes out of a maximum of {{ maximum }}",
"minting_account_add": "unable to add minting account",
"minting_account_remove": "unable to remove minting account",
"missing_fields": "missing: {{ fields }}",
"navigation_timeout": "navigation timeout",
"network_generic": "network error",
"password_not_matching": "password fields do not match!",
"password_wrong": "unable to authenticate. Wrong password",
"publish_app": "unable to publish app",
"rating_option": "cannot find rating option",
"save_qdn": "unable to save to QDN",
"send_failed": "failed to send",
"unable_encrypt_app": "unable to encrypt app. App not published'",
"unable_publish_app": "unable to publish app",
"unable_publish_image": "unable to publish image",
"unable_rate": "unable to rate",
"update_failed": "failed to update"
},
"generic": {
"avatar_size": "{{ size }} KB max. for GIFS",
"buy_order_request": "the Application <br/><italic>{{hostname}}</italic> <br/><span>is requesting {{count}} buy order</span>",
"buy_order_request_other": "the Application <br/><italic>{{hostname}}</italic> <br/><span>is requesting {{count}} buy orders</span>",
"devmode_local_node": "please use your local node for dev mode! Logout and use Local node.",
"edited": "edited",
"editing_message": "editing message",
"fee_qort": "fee: {{ message }} QORT",
"foreign_fee": "foreign fee: {{ message }}",
"mentioned": "mentioned",
"message_with_image": "this message already has an image",
"name_available": "{{ name }} is available",
"name_benefits": "benefits of a name",
"name_checking": "checking if name already exists",
"name_preview": "you need a name to use preview",
"name_publish": "you need a Qortal name to publish",
"name_rate": "you need a name to rate.",
"name_registration": "your balance is {{ balance }} QORT. A name registration requires a {{ fee }} QORT fee",
"name_unavailable": "{{ name }} is unavailable",
"no_description": "no description",
"no_minting_details": "cannot view minting details on the gateway",
"no_notifications": "no new notifications",
"no_pinned_changes": "you currently do not have any changes to your pinned apps",
"no_results": "no results",
"one_app_per_name": "note: Currently, only one App and Website is allowed per Name.",
"overwrite_qdn": "overwrite to QDN",
"password_confirm": "please confirm a password",
"password_enter": "please enter a password",
"payment_request": "the Application <br/><italic>{{hostname}}</italic> <br/><span>is requesting a payment</span>",
"people_reaction": "people who reacted with {{ reaction }}",
"publish_data": "publish data to Qortal: anything from apps to videos. Fully decentralized!",
"publishing": "publishing... Please wait.",
"qdn": "use QDN saving",
"rating": "rating for {{ service }} {{ name }}",
"register_name": "you need a registered Qortal name to save your pinned apps to QDN.",
"replied_to": "replied to {{ person }}",
"revert_default": "revert to default",
"revert_qdn": "revert to QDN",
"save_qdn": "save to QDN",
"secure_ownership": "secure ownership of data published by your name. You can even sell your name, along with your data to a third party.",
"select_file": "please select a file",
"select_image": "please select an image for a logo",
"select_zip": "select .zip file containing static content:",
"sending": "sending...",
"settings": "you are using the export/import way of saving settings.",
"space_for_admins": "sorry, this space is only for Admins.",
"unread_messages": "unread messages below",
"unsaved_changes": "you have unsaved changes to your pinned apps. Save them to QDN.",
"updating": "updating"
},
"question": {
"logout": "are you sure you would like to logout?",
"new_user": "are you a new user?",
"delete_chat_image": "would you like to delete your previous chat image?",
"perform_transaction": "would you like to perform a {{action}} transaction?",
"provide_thread": "please provide a thread title",
"publish_app": "would you like to publish this app?",
"publish_avatar": "would you like to publish an avatar?",
"publish_qdn": "would you like to publish your settings to QDN (encrypted)?",
"overwrite_changes": "the app was unable to download your existing QDN-saved pinned apps. Would you like to overwrite those changes?",
"rate_app": "would you like to rate this app a rating of {{ rate }}?. It will create a POLL tx.",
"register_name": "would you like to register this name?",
"reset_pinned": "don't like your current local changes? Would you like to reset to the default pinned apps?",
"reset_qdn": "don't like your current local changes? Would you like to reset to your saved QDN pinned apps?"
},
"status": {
"minting": "(in conio)",
@ -73,13 +226,18 @@
"synchronizing": "sincronizzazione"
},
"success": {
"order_submitted": "il tuo ordine di acquisto è stato inviato",
"publish_qdn": "pubblicato con successo su QDN",
"request_read": "ho letto questa richiesta",
"transfer": "il trasferimento è riuscito!"
"order_submitted": "your buy order was submitted",
"published": "successfully published. Please wait a couple minutes for the network to propogate the changes.",
"published_qdn": "successfully published to QDN",
"rated_app": "successfully rated. Please wait a couple minutes for the network to propogate the changes.",
"request_read": "I have read this request",
"transfer": "the transfer was succesful!"
}
},
"minting_status": "stato conio",
"minting_status": "stato del conio",
"name": "nome",
"name_app": "nome/App",
"none": "nessuno",
"page": {
"last": "ultima",
"first": "prima",
@ -89,27 +247,13 @@
"payment_notification": "notifica di pagamento",
"price": "prezzo",
"q_mail": "q-mail",
"question": {
"new_user": "sei un nuovo utente?"
"server": "server",
"settings": "settings",
"sort": {
"by_member": "by member"
},
"save_options": {
"no_pinned_changes": "attualmente non hai modifiche nelle app fissate",
"overwrite_changes": "l'app non è riuscita a scaricare le tue app fissate salvate su QDN. Vuoi sovrascrivere le modifiche?",
"overwrite_qdn": "sovrascrivi su QDN",
"publish_qdn": "vuoi pubblicare le tue impostazioni su QDN (crittografate)?",
"qdn": "usa salvataggio QDN",
"register_name": "hai bisogno di un nome Qortal registrato per salvare le app fissate su QDN.",
"reset_pinned": "non ti piacciono le modifiche locali? Vuoi ripristinare le app fissate predefinite?",
"reset_qdn": "non ti piacciono le modifiche locali? Vuoi ripristinare le app fissate salvate su QDN?",
"revert_default": "ripristina ai valori predefiniti",
"revert_qdn": "ripristina da QDN",
"save_qdn": "salva su QDN",
"save": "salva",
"settings": "stai usando il metodo di esportazione/importazione per salvare le impostazioni.",
"unsaved_changes": "hai modifiche non salvate nelle app fissate. Salvale su QDN."
},
"settings": "impostazioni",
"supply": "offerta",
"supply": "supply",
"tags": "tags",
"theme": {
"dark": "modalità scura",
"light": "modalità chiara"
@ -125,9 +269,13 @@
"title": "titolo",
"tutorial": "tutorial",
"user_lookup": "ricerca utente",
"zip": "zip",
"wallet": {
"litecoin": "portafoglio litecoin",
"qortal": "portafoglio qortal",
"wallet": "portafoglio",
"wallet_other": "portafogli"
},
"website": "website",
"welcome": "benvenuto"
}