Skip to content

Commit

Permalink
fix: remove the DATS translation from the wrong translation file
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Nov 1, 2023
1 parent d9e8ecc commit 509e4c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/js/components/Provenance/DownloadDats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import React, { useCallback } from 'react';
import PropTypes from 'prop-types';
import { Button, Space } from 'antd';
import { DownloadOutlined } from '@ant-design/icons';
import { useTranslation } from 'react-i18next';
import { useTranslationDefault } from '@/hooks';
import { ProvenanceStoreDataset } from '@/types/provenance';

const DownloadDats = ({ metadata }: { metadata: ProvenanceStoreDataset }) => {
const { t } = useTranslation();
const t = useTranslationDefault();

const exportData = useCallback(() => {
window.location.href = `/datasets/${metadata.identifier}/dats`;
Expand Down
5 changes: 2 additions & 3 deletions src/public/locales/en/translation_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
"MALE": "MALE",
"FEMALE": "FEMALE",
"I have no problems in walking about": "I have no problems in walking about",
"Results": "Results",
"Download DATS File": "Download DATS File"
}
"Results": "Results"
}
3 changes: 1 addition & 2 deletions src/public/locales/fr/translation_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
"Lab Test Result": "Résultats des tests de laboratoire",
"Experiment Types": "Types d'expériences",
"I have no problems in walking about": "Je n’ai aucun problème à marcher",
"Results": "Résultats",
"Download DATS File": "Télécharger le fichier DATS"
"Results": "Résultats"
}

0 comments on commit 509e4c9

Please sign in to comment.