front: add missing translation components

This commit is contained in:
Arthur Jamet
2023-12-14 17:19:30 +01:00
committed by Clément Le Bihan
parent d3994ff26e
commit 9bb256f2ee
7 changed files with 38 additions and 44 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ import API from '../../API';
import ButtonBase from './ButtonBase';
import { Icon } from 'iconsax-react-native';
import { LoadingView } from '../Loading';
import { TranslationKey, translate } from '../../i18n/i18n';
import { Translate, TranslationKey, translate } from '../../i18n/i18n';
import { useNavigation } from '../../Navigation';
import Spacer from './Spacer';
import User from '../../models/User';
@@ -55,7 +55,7 @@ const SongHistory = (props: { quantity: number }) => {
return (
<View>
{musics.length === 0 ? (
<Text style={{ paddingHorizontal: 16 }}>{translate('menuNoSongsPlayedYet')}</Text>
<Translate style={{ paddingHorizontal: 16 }} translationKey='menuNoSongsPlayedYet'/>
) : (
musics.map((song) => (
<View
@@ -117,7 +117,7 @@ const ScaffoldDesktopCC = (props: ScaffoldDesktopCCProps) => {
/>
{!isSmallScreen && (
<Text fontSize={'xl'} selectable={false}>
Chromacase
ChromaCase
</Text>
)}
</Row>