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>
{
props.description
|| t`Select one of your available watchlists`
|| t`Select one of your available Watchlists`
}
</Typography.Paragraph>
<Select

View File

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

View File

@@ -571,7 +571,7 @@ msgid "${ rest.length } more"
msgstr ""
#: assets/components/tracking/watchlist/WatchlistSelectionModal.tsx:82
msgid "Select one of your available watchlists"
msgid "Select one of your available Watchlists"
msgstr ""
#: assets/pages/infrastructure/IcannRegistrarPage.tsx:45
@@ -714,12 +714,20 @@ msgid ""
msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:82
msgid "Add to watchlist"
msgid "Add to Watchlist"
msgstr ""
#: assets/pages/search/DomainSearchPage.tsx:92
#, 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 ""
#: assets/pages/StatisticsPage.tsx:35