Skip to content

Commit

Permalink
finish french translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ybizeul committed Sep 13, 2024
1 parent f203805 commit 663af37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions html/src/Pages/SharePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function SharePage() {
<Stack align="center" pb="10em">
<IconMoodSad style={{ width: '10%', height: '10%' }} stroke={1.5}/>
<Text size="xl" fw="700">{error.message}</Text>
<Anchor onClick={() => { window.location.reload()}}>Reload</Anchor>
<Anchor onClick={() => { window.location.reload()}}>{t("reload")}</Anchor>
</Stack>
</Center>
)
Expand Down Expand Up @@ -178,7 +178,7 @@ export function SharePage() {
)}
</CopyButton>
{canDownload() && items.length + queueItems.filter((i) => i.failed === false && i.finished === true ).length > 0 &&
<Button component="a" href={'/d/'+share.name} justify="center" variant="outline" size="xs"><IconDownload style={{ width: '70%', height: '70%' }} stroke={1.5}/>Download</Button>
<Button component="a" href={'/d/'+share.name} justify="center" variant="outline" size="xs"><IconDownload style={{ width: '70%', height: '70%' }} stroke={1.5}/>{t("download_button")}</Button>
}
</Group>
</Box>
Expand Down Expand Up @@ -239,7 +239,7 @@ export function SharePage() {
</Dropzone.Idle>
<div>
<Text size="xl" inline>
Drag files here or click to select files
{t("drag_area")}
</Text>
</div>
</Group>
Expand Down
7 changes: 7 additions & 0 deletions html/src/i18n/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ i18n
// `translation` is the default namespace.
// More details about namespaces shortly.
translation: {
drag_area: "Drag files here or click to select files",
create_share: "Create Share",
your_shares: "Your Shares",
other_shares: "Other Shares",
Expand Down Expand Up @@ -73,11 +74,15 @@ i18n
share_does_not_exists: "Share does not exists.",
please_check_link: "Please check the link used to access this page.",
reload: "Reload",

download_button: "Download",

},
},
// Arabic
fr: {
translation: {
drag_area: "Glissez des fichiers ou cliquez pour sélectionner",
create_share: "Créer un partage",
your_shares: "Vos Partages",
other_shares: "Autres Partages",
Expand Down Expand Up @@ -111,6 +116,8 @@ i18n
share_does_not_exists: "Ce partage n'existe pas.",
please_check_link: "Merci de vérifier le lien qui vous a été transmis.",
reload: "Recharger",

download_button: "Télécharger",
},
},
},
Expand Down

0 comments on commit 663af37

Please sign in to comment.