Skip to content

Commit

Permalink
fixup! feat(i18n): convert file, image and imagetool input strings to…
Browse files Browse the repository at this point in the history
… use i18n primitives
  • Loading branch information
bjoerge committed Oct 10, 2023
1 parent 85f0269 commit f1693e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export interface BaseImageInputProps
observeAsset: (documentId: string) => Observable<ImageAsset>
resolveUploader: UploaderResolver
client: SanityClient
t: TFunction
t: (key: string, values?: Record<string, string>) => string
}

const getDevicePixelRatio = () => {
Expand Down
1 change: 1 addition & 0 deletions packages/sanity/test/form/renderImageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export async function renderImageInput(options: {
...restProps,
assetSources,
client,
t: (key: string, values?: Record<string, string>) => key,
imageUrlBuilder,
observeAsset,
resolveUploader,
Expand Down

0 comments on commit f1693e3

Please sign in to comment.