feat: translate button text

This commit is contained in:
Maël Gangloff
2025-11-02 13:44:28 +01:00
parent 0739ef5ca9
commit 604a445839
3 changed files with 18 additions and 8 deletions

View File

@@ -79,7 +79,7 @@ export default function WatchlistSelectionModal(props: WatchlistSelectionModalPr
<Typography.Paragraph> <Typography.Paragraph>
{ {
props.description props.description
|| t`Select one of your available watchlists` || t`Select one of your available Watchlists`
} }
</Typography.Paragraph> </Typography.Paragraph>
<Select <Select

View File

@@ -1,5 +1,5 @@
import React, {useEffect, useState} from 'react' import React, {useEffect, useState} from 'react'
import type {FormProps} from 'antd' import type { FormProps} from 'antd'
import {FloatButton} from 'antd' import {FloatButton} from 'antd'
import {Empty, Flex, message, Skeleton} from 'antd' import {Empty, Flex, message, Skeleton} from 'antd'
import type {Domain, Watchlist} from '../../utils/api' import type {Domain, Watchlist} from '../../utils/api'
@@ -79,7 +79,7 @@ export default function DomainSearchPage() {
insetInlineEnd: (100 - 40) / 2, insetInlineEnd: (100 - 40) / 2,
bottom: 100 - 40 / 2 bottom: 100 - 40 / 2
}} }}
tooltip={t`Add to watchlist`} tooltip={t`Add to Watchlist`}
type="primary" type="primary"
icon={<PlusOutlined/>} icon={<PlusOutlined/>}
onClick={() => setAddToWatchlistModal(true)} onClick={() => setAddToWatchlistModal(true)}
@@ -89,10 +89,12 @@ export default function DomainSearchPage() {
open={addToWatchlistModal} open={addToWatchlistModal}
onFinish={addToWatchlist} onFinish={addToWatchlist}
modalProps={{ modalProps={{
title: t`Add ${domainLdhName} to a watchlist`, title: t`Add ${domainLdhName} to a Watchlist`,
onCancel: () => setAddToWatchlistModal(false), onCancel: () => setAddToWatchlistModal(false),
onClose: () => setAddToWatchlistModal(false), onClose: () => setAddToWatchlistModal(false),
}} cancelText: t`Cancel`,
okText: t`Add`
}}
/> />
</> </>
} }

View File

@@ -571,7 +571,7 @@ msgid "${ rest.length } more"
msgstr "" msgstr ""
#: assets/components/tracking/watchlist/WatchlistSelectionModal.tsx:82 #: assets/components/tracking/watchlist/WatchlistSelectionModal.tsx:82
msgid "Select one of your available watchlists" msgid "Select one of your available Watchlists"
msgstr "" msgstr ""
#: assets/pages/infrastructure/IcannRegistrarPage.tsx:45 #: assets/pages/infrastructure/IcannRegistrarPage.tsx:45
@@ -714,12 +714,20 @@ msgid ""
msgstr "" msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:82 #: assets/pages/search/DomainSearchPage.tsx:82
msgid "Add to watchlist" msgid "Add to Watchlist"
msgstr "" msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:92 #: assets/pages/search/DomainSearchPage.tsx:92
#, javascript-format #, javascript-format
msgid "Add ${ domainLdhName } to a watchlist" msgid "Add ${ domainLdhName } to a Watchlist"
msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:95
msgid "Cancel"
msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:96
msgid "Add"
msgstr "" msgstr ""
#: assets/pages/StatisticsPage.tsx:35 #: assets/pages/StatisticsPage.tsx:35