From 9ec176248139e77e02e8312a5f9eb4ae3a2a8d27 Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Sat, 26 Apr 2025 16:05:06 +0200 Subject: [PATCH] Add translations --- public/locales/en/core.json | 7 ++-- public/locales/en/group.json | 1 + src/App.tsx | 8 ++--- src/components/Group/BlockedUsersModal.tsx | 2 +- src/components/Group/Forum/Thread.tsx | 8 +++-- src/components/Home/NewUsersCTA.tsx | 37 +++++++++++++--------- src/components/Minting/Minting.tsx | 4 +-- 7 files changed, 37 insertions(+), 30 deletions(-) diff --git a/public/locales/en/core.json b/public/locales/en/core.json index 5b75a16..5338962 100644 --- a/public/locales/en/core.json +++ b/public/locales/en/core.json @@ -16,8 +16,7 @@ "export": "export", "import": "import", "join": "join", - "logout": "logout", - "refetch_page": "refetch page" + "logout": "logout" }, "core": { "block_height": "block height", @@ -37,14 +36,16 @@ "page": { "last": "last", "first": "first", + "next": "next", "previous": "previous" }, "downloading_qdn": "downloading from QDN", "last_height": "last height", "loading": "loading...", "loading_posts": "loading posts... please wait.", + "message_us": "please message us on Telegram or Discord if you need 4 QORT to start chatting without any limitations", "minting_status": "minting status", - "next": "next", + "new_user": "are you a new user?", "payment_notification": "payment notification", "price": "price", "q_mail": "q-mail", diff --git a/public/locales/en/group.json b/public/locales/en/group.json index 766b506..f86f7ee 100644 --- a/public/locales/en/group.json +++ b/public/locales/en/group.json @@ -3,6 +3,7 @@ "create_group": "create group", "find_group": "find group", "join_group": "join group", + "refetch_page": "refetch page", "return_to_thread": "return to threads" }, "advanced_options": "advanced options", diff --git a/src/App.tsx b/src/App.tsx index fe375b8..605900f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -510,7 +510,7 @@ function App() { console.error( 'Failed to get API key:', error?.message || 'An error occurred' - ); // TODO translate + ); }) .finally(() => { window @@ -1887,10 +1887,6 @@ function App() { @@ -3027,7 +3023,7 @@ function App() { > {t('core:action.close', { postProcess: 'capitalize' })} - // TODO translate + )} {countdown && ( diff --git a/src/components/Group/BlockedUsersModal.tsx b/src/components/Group/BlockedUsersModal.tsx index 80d9c4c..b2d58e7 100644 --- a/src/components/Group/BlockedUsersModal.tsx +++ b/src/components/Group/BlockedUsersModal.tsx @@ -129,7 +129,7 @@ export const BlockedUsersModal = () => { executeEvent('updateChatMessagesWithBlocks', true); } } catch (error) { - setOpenSnackGlobal(true); // TODO translate + setOpenSnackGlobal(true); setInfoSnackCustom({ type: 'error', message: error?.message || 'Unable to block user', diff --git a/src/components/Group/Forum/Thread.tsx b/src/components/Group/Forum/Thread.tsx index 9472443..4c94e12 100644 --- a/src/components/Group/Forum/Thread.tsx +++ b/src/components/Group/Forum/Thread.tsx @@ -724,7 +724,7 @@ export const Thread = ({ disabled={!hasNextPage} variant="contained" > - {t('core:next', { postProcess: 'capitalize' })} + {t('core:page.next', { postProcess: 'capitalize' })} @@ -1036,7 +1038,7 @@ export const Thread = ({ disabled={!hasNextPage} variant="contained" > - {t('core:next', { postProcess: 'capitalize' })} + {t('core:page.next', { postProcess: 'capitalize' })}