mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-29 06:17:52 +00:00
Add missing translation
This commit is contained in:
parent
51c65e8236
commit
7f2102e5e0
@ -25,8 +25,10 @@
|
|||||||
},
|
},
|
||||||
"result": {
|
"result": {
|
||||||
"error": {
|
"error": {
|
||||||
"access_name": "Cannot send a message without a access to your name",
|
"access_name": "cannot send a message without a access to your name",
|
||||||
"group_info": "Cannot access group information"
|
"description_required": "please provide a description",
|
||||||
|
"group_info": "cannot access group information",
|
||||||
|
"name_required": "please provide a name"
|
||||||
},
|
},
|
||||||
"loading_threads": "loading threads... please wait.",
|
"loading_threads": "loading threads... please wait.",
|
||||||
"success": {
|
"success": {
|
||||||
|
@ -98,8 +98,18 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
|
|
||||||
const handleCreateGroup = async () => {
|
const handleCreateGroup = async () => {
|
||||||
try {
|
try {
|
||||||
if (!name) throw new Error('Please provide a name');
|
if (!name)
|
||||||
if (!description) throw new Error('Please provide a description');
|
throw new Error(
|
||||||
|
t('group:result.error.name_required', {
|
||||||
|
postProcess: 'capitalize',
|
||||||
|
})
|
||||||
|
);
|
||||||
|
if (!description)
|
||||||
|
throw new Error(
|
||||||
|
t('group:result.error.description_required', {
|
||||||
|
postProcess: 'capitalize',
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
const fee = await getFee('CREATE_GROUP');
|
const fee = await getFee('CREATE_GROUP');
|
||||||
|
|
||||||
@ -128,7 +138,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
postProcess: 'capitalize',
|
postProcess: 'capitalize',
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
setOpenSnack(true); // TODO translate
|
setOpenSnack(true);
|
||||||
setTxList((prev) => [
|
setTxList((prev) => [
|
||||||
{
|
{
|
||||||
...response,
|
...response,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user