Skip to content

Commit

Permalink
fix(i18n): remove external ns in renderer
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Oct 27, 2024
1 parent 7916803 commit 229b3e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/renderer/src/components/ui/media/preview-media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Wrapper: Component<{
sideContent?: React.ReactNode
}> = ({ children, src, showActions, sideContent }) => {
const { dismiss } = useCurrentModal()
const { t } = useTranslation(["shortcuts", "external"])
const { t } = useTranslation(["shortcuts", "common"])

return (
<div className="center relative size-full px-20 pb-8 pt-10" onClick={dismiss}>
Expand Down Expand Up @@ -71,7 +71,7 @@ const Wrapper: Component<{
<Fragment>
{IN_ELECTRON && (
<ActionButton
tooltip={t("external:header.download")}
tooltip={t("common:words.download")}
onClick={() => {
tipcClient?.download(src)
}}
Expand Down
1 change: 1 addition & 0 deletions locales/common/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"words.copy": "Copy",
"words.create": "Create",
"words.delete": "Delete",
"words.download": "Download",
"words.edit": "Edit",
"words.entry": "Entry",
"words.expand": "Expand",
Expand Down

0 comments on commit 229b3e1

Please sign in to comment.