Skip to content

Commit

Permalink
refactor(i18n): allow string arrays as <Translate> values
Browse files Browse the repository at this point in the history
Rationale: translation resources can use the list formatting functions
  • Loading branch information
rexxars committed Oct 5, 2023
1 parent 737e308 commit 1374639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sanity/src/core/i18n/Translate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface TranslationProps {
t: TFunction
i18nKey: string
components?: ComponentMap
values?: Record<string, string>
values?: Record<string, string | string[]>
}

function render(tokens: Token[], componentMap: ComponentMap): ReactNode {
Expand Down

0 comments on commit 1374639

Please sign in to comment.