Skip to content

Commit

Permalink
chore: add missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane committed Nov 30, 2023
1 parent 2cc6a14 commit cd14a28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/ImportData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,13 @@ export const ImportData = memo(() => {
});

const AlertImportInfos = memo(() => {
const { t } = useTranslation();

return (
<Alert mb="lg">
<Flex gap="xs">
<IconInfoCircle />
<Text size="md">
Only <strong>Invidious</strong> and <strong>HoloPlay</strong> export
file can be imported for now.
</Text>
<Text size="md">{t("settings.data.import.alert")}</Text>
</Flex>
</Alert>
);
Expand Down
1 change: 1 addition & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"settings.data.import.notification.message": "Data imported successfully",
"settings.data.import.notification.error.title": "Error",
"settings.data.import.notification.error.message": "An error has occurred while importing your data",
"settings.data.import.alert": "Only Invidious and HoloPlay export file can be imported for now. Other sources like Freetube will be added soon",
"settings.data.export": "Export",
"settings.data.export.left": "Your playlist",
"settings.data.export.right": "Export playlists",
Expand Down
1 change: 1 addition & 0 deletions src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"settings.data.import.notification.message": "Les données ont été importées",
"settings.data.import.notification.error.title": "Erreur",
"settings.data.import.notification.error.message": "Une erreur est survenue lors de l'import des données",
"settings.data.import.alert": "Seul les export de Invidious et HoloPlay peuvent être importé pour le moment. D'autre sources comme Freetube seront ajoutées prochainement",
"settings.data.export": "Exporter",
"settings.data.export.left": "Vos playlists",
"settings.data.export.right": "Vos playlists exportées",
Expand Down

0 comments on commit cd14a28

Please sign in to comment.