diff --git a/minibits.inlang/settings.json b/minibits.inlang/settings.json index 04cdd24f..b57eb50b 100644 --- a/minibits.inlang/settings.json +++ b/minibits.inlang/settings.json @@ -28,6 +28,7 @@ "subTx", "labelTx", "titleTx", + "headingTx", "contentTx", "footerTx" ] diff --git a/src/i18n_messages/en.json b/src/i18n_messages/en.json index 5d3fedd9..251ec267 100644 --- a/src/i18n_messages/en.json +++ b/src/i18n_messages/en.json @@ -357,8 +357,10 @@ "settingsScreen_backupRecovery": "Backup and recovery", "settingsScreen_devOptions": "Developer options", "settingsScreen_go": "Let's go!", - "settingsScreen_mintsCount_one": "%{count} mint", - "settingsScreen_mintsCount_other": "%{count} mints", + "settingsScreen_mintsCount": { + "one": "%{count} mint", + "other": "%{count} mints" + }, "settingsScreen_preferredUnit": "Preferred unit", "settingsScreen_exchangeCurrency": "Balance conversion", "settingsScreen_theme": "Theme", diff --git a/src/i18n_messages/sk.json b/src/i18n_messages/sk.json index 09d415f7..599dd5bd 100644 --- a/src/i18n_messages/sk.json +++ b/src/i18n_messages/sk.json @@ -300,8 +300,10 @@ "settingsScreen_backupRecovery": "Zálohovanie a obnova", "settingsScreen_devOptions": "Vývojárske nastavenia", "settingsScreen_go": "Poďme na to!", - "settingsScreen_mintsCount_one": "{{count}} mint", - "settingsScreen_mintsCount_other": "{{count}} minty", + "settingsScreen_mintsCount": { + "one": "{{count}} mint", + "other": "{{count}} minty" + }, "settingsScreen_preferredUnit": "Preferovaná mena", "settingsScreen_exchangeCurrency": "Zobraziť zostatok v mene", "settingsScreen_theme": "Téma", diff --git a/src/screens/Contacts/OwnName.tsx b/src/screens/Contacts/OwnName.tsx index 28c75a3b..9dca9788 100644 --- a/src/screens/Contacts/OwnName.tsx +++ b/src/screens/Contacts/OwnName.tsx @@ -108,7 +108,7 @@ export const OwnName = observer(function (props: {pubkey: string}) { stopPolling(`checkDonationPaidPoller-${donationInvoice.payment_hash}`) setResultModalInfo({ status: TransactionStatus.COMPLETED, - message: translate("contactsScreen.ownName.donationSuccess", { receiver: ownName + MINIBITS_NIP05_DOMAIN }) + message: translate("contactsScreen_ownName_donationSuccess", { receiver: ownName + MINIBITS_NIP05_DOMAIN }) }) toggleResultModal() //resetState() @@ -150,12 +150,12 @@ export const OwnName = observer(function (props: {pubkey: string}) { const onOwnNameCheck = async function () { if(!ownName || ownName.length < 2) { - setInfo(translate('contactsScreen.ownName.tooShort')) + setInfo(translate('contactsScreen_ownName_tooShort')) return } if(!isValidName(ownName)) { - setInfo(translate('contactsScreen.ownName.illegalChar')) + setInfo(translate('contactsScreen_ownName_illegalChar')) return } @@ -163,7 +163,7 @@ export const OwnName = observer(function (props: {pubkey: string}) { const profileExists = await MinibitsClient.getWalletProfileByNip05(ownName + MINIBITS_NIP05_DOMAIN) if(profileExists) { - setInfo(translate("contactsScreen.ownName.profileExists")) + setInfo(translate("contactsScreen_ownName_profileExists")) return } @@ -286,7 +286,7 @@ export const OwnName = observer(function (props: {pubkey: string}) { {!isChecked ? ( @@ -313,7 +313,7 @@ export const OwnName = observer(function (props: {pubkey: string}) { /> } - footerTx='contactsScreen.ownName.chooseOwnNameFooter' + footerTx='contactsScreen_ownName_chooseOwnNameFooter' footerStyle={{color: hint, textAlign: 'center'}} /> ) : ( @@ -323,7 +323,7 @@ export const OwnName = observer(function (props: {pubkey: string}) { @@ -333,13 +333,13 @@ export const OwnName = observer(function (props: {pubkey: string}) { {donationInvoice ? ( <> @@ -351,7 +351,7 @@ export const OwnName = observer(function (props: {pubkey: string}) { text='Minibits' style={{fontFamily: 'Gluten-Regular', fontSize: 18}} />{' '} - +