Merge pull request #969 from ManishMadan2882/main

Internationalisation with i18next
This commit is contained in:
Alex
2024-05-29 11:23:45 +01:00
committed by GitHub
20 changed files with 474 additions and 294 deletions

View File

@@ -2,7 +2,7 @@ import Trash from '../assets/trash.svg';
import Arrow2 from '../assets/dropdown-arrow.svg';
import { Doc } from '../preferences/preferenceApi';
import { useDispatch } from 'react-redux';
import { useTranslation } from 'react-i18next';
type Props = {
options: Doc[] | null;
selectedDocs: Doc | null;
@@ -30,6 +30,8 @@ function SourceDropdown({
setIsDocsListOpen(false);
};
const { t } = useTranslation();
return (
<div className="relative w-5/6 rounded-3xl">
<button
@@ -104,7 +106,7 @@ function SourceDropdown({
onClick={handleEmptyDocumentSelect}
>
<span className="ml-4 flex-1 overflow-hidden overflow-ellipsis whitespace-nowrap py-3">
None
{t('none')}
</span>
</div>
</div>