diff --git a/src/langs/json/en.json b/src/langs/json/en.json index 061895835..05c6a5009 100644 --- a/src/langs/json/en.json +++ b/src/langs/json/en.json @@ -820,6 +820,7 @@ "collaborate": "Manage Collaborators", "edit": "Edit", "upload": "Upload Documents", + "download": "Download file", "addons": { "title": "Add-Ons", "pinned": "Pinned add-ons will appear here" diff --git a/src/routes/documents/[id]-[slug]/sidebar/Actions.svelte b/src/routes/documents/[id]-[slug]/sidebar/Actions.svelte index e80d00aed..0e7ca5b59 100644 --- a/src/routes/documents/[id]-[slug]/sidebar/Actions.svelte +++ b/src/routes/documents/[id]-[slug]/sidebar/Actions.svelte @@ -11,6 +11,7 @@ Pencil16, Share16, } from "svelte-octicons"; + import { _ } from "svelte-i18n"; import Action from "$lib/components/common/Action.svelte"; import Flex from "$lib/components/common/Flex.svelte"; @@ -37,51 +38,51 @@ - {document.access} access + {$_(`access.${document.access}.title`)} {$_("access.access")} - Edit + {$_("sidebar.edit")} - - - Revision History - + {#if document.revision_control} + + + {$_("sidebar.revisions")} + + {/if} - Download File + {$_("sidebar.download")} - Share … + {$_("sidebar.share")} … - Add a note … + {$_("sidebar.annotate")} … - Redact … + {$_("sidebar.redact")} … - Modify Pages … + {$_("sidebar.modify")} …