1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 18:32:34 +01:00

fix translation issue

fixes #1498
This commit is contained in:
Mikael Finstad 2023-03-10 13:37:50 +08:00
parent 0edb7cf31e
commit fd881553a1
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -1,6 +1,5 @@
import React, { memo } from 'react';
import i18n from 'i18next';
import { useTranslation, Trans } from 'react-i18next';
import SetCutpointButton from './components/SetCutpointButton';
@ -26,7 +25,11 @@ const NoFileLoaded = memo(({ mifiLink, currentCutSeg }) => {
</div>
<div style={{ fontSize: '3vmin', color: 'var(--gray11)' }} role="button">
<SimpleModeButton style={{ verticalAlign: 'middle' }} size={16} /> {simpleMode ? i18n.t('to show advanced view') : i18n.t('to show simple view')}
{simpleMode ? (
<Trans><SimpleModeButton style={{ verticalAlign: 'middle' }} size={16} /> to show advanced view</Trans>
) : (
<Trans><SimpleModeButton style={{ verticalAlign: 'middle' }} size={16} /> to show simple view</Trans>
)}
</div>