Skip to content

Commit

Permalink
feat: adds translations to history component
Browse files Browse the repository at this point in the history
  • Loading branch information
mrspaiva committed Jul 27, 2024
1 parent 8b55ce9 commit d305d6a
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions website/src/components/History.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { FC, JSX } from 'react';
import Details from '@theme/Details';
import { FileClock as HistoryIcon } from 'lucide-react';
import Translate from '@docusaurus/Translate';

export type HistoryRecords = {
/** **Examples:**
Expand Down Expand Up @@ -64,16 +65,33 @@ export const History: FC<HistoryProps> = ({ records, open }) => {
open={open}
summary={
<summary>
<HistoryIcon /> History
<HistoryIcon />
<Translate
id="history.component.title"
>
History
</Translate>
</summary>
}
className='history'
>
<table>
<thead>
<tr>
<th>Version</th>
<th>Changes</th>
<th>
<Translate
id="history.component.version"
>
Version
</Translate>
</th>
<th>
<Translate
id="history.component.changes"
>
Changes
</Translate>
</th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit d305d6a

Please sign in to comment.