-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(i18n): updates translation for form/inputs/files #5127
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Full Reportsanity
@sanity/types
sanity/desk
@sanity/diff
@sanity/block-tools
@sanity/portable-text-editor
@sanity/mutator
@sanity/cli
@sanity/schema/_internal
@sanity/util/paths
sanity/router
@sanity/util/legacyDateFormat
@sanity/schema
sanity/cli
@sanity/vision
@sanity/util/fs
sanity/_internal
@sanity/util/content
|
Component Testing Report Updated Nov 6, 2023 5:29 PM (UTC)
|
@@ -126,7 +129,7 @@ export function FileActionsMenu(props: Props) { | |||
constrainSize | |||
> | |||
<Button | |||
aria-label="Open file options menu" | |||
aria-label={t('inputs.files.image.actions-menu.files.aria-label')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This key doesn't make sense to me...
Multiple file
and also an image
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was going by what was already in the resource file. I think @bjoerge was following the directory path, which makes some sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I was mirroring the way the files are organized, but agree it reads weird. inputs.image.actions-menu…
should suffice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what I did and what made it extra confusing was this key having 'image' in it at all. 😬 . I fixed this one and the others ones to remove 'files'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! It was in the File component, didn't catch that.
packages/sanity/src/core/form/inputs/files/FileInput/FileActionsMenu.tsx
Outdated
Show resolved
Hide resolved
packages/sanity/src/core/form/inputs/files/FileInput/FileInput.tsx
Outdated
Show resolved
Hide resolved
packages/sanity/src/core/form/inputs/files/FileInput/FileInput.tsx
Outdated
Show resolved
Hide resolved
packages/sanity/src/core/form/inputs/files/FileInput/InvalidFileWarning.tsx
Outdated
Show resolved
Hide resolved
packages/sanity/src/core/form/inputs/files/ImageInput/InvalidImageWarning.tsx
Outdated
Show resolved
Hide resolved
packages/sanity/src/core/form/inputs/files/ImageToolInput/ImageToolInput.tsx
Outdated
Show resolved
Hide resolved
a6d47ad
to
deff5ab
Compare
785533b
to
96d5f0e
Compare
This PR is superseded by #5134 |
Description
Updates translation for files in
packages/sanity/src/core/form/inputs/files