Skip to content

Commit

Permalink
chore: translate Close button
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff committed Aug 15, 2024
1 parent 34c7c9c commit fb43f6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/components/tracking/WatchlistsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ export function WatchlistsList({watchlists, onDelete, onUpdateWatchlist, connect

const showDrawer = () => {
setOpen(true)
};
}

const onClose = () => {
setOpen(false)
setLoading(false)
};
}

return <>
{watchlists.map(watchlist =>
Expand Down Expand Up @@ -93,7 +93,7 @@ export function WatchlistsList({watchlists, onDelete, onUpdateWatchlist, connect
paddingBottom: 80,
}
}}
extra={<Button onClick={onClose}>Cancel</Button>}
extra={<Button onClick={onClose}>{t`Cancel`}</Button>}
>
<WatchlistForm
form={form}
Expand Down
4 changes: 4 additions & 0 deletions translations/translations.pot
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ msgstr ""
msgid "Update a Watchlist"
msgstr ""

#: assets/components/tracking/WatchlistsList.tsx:96
msgid "Cancel"
msgstr ""

#: assets/components/tracking/WatchlistsList.tsx:110
#: assets/components/tracking/WatchlistsList.tsx:117
msgid "Delete the Watchlist"
Expand Down

0 comments on commit fb43f6b

Please sign in to comment.