Skip to content

Commit

Permalink
refactor(i18n): use consistent naming (searchTerm over searchString)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2023
1 parent 1e22f82 commit c89c092
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev/test-studio/plugins/locale-no-nb/bundles/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const studioResources: Record<StudioLocaleResourceKeys, string> = {

/** Message shown when no documents were found that matched the given search string */
'inputs.reference.no-results-for-query':
'Ingen resultater for <SearchTerm>«{{searchString}}»</SearchTerm>',
'Ingen resultater for <SearchTerm>«{{searchTerm}}»</SearchTerm>',

/** Label for action to create a new document from the reference input */
'inputs.reference.action.create-new-document': 'Opprett ny',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const ReferenceAutocomplete = forwardRef(function ReferenceAutocomplete(
t={t}
i18nKey="inputs.reference.no-results-for-query"
components={{SearchTerm: ({children}) => <strong>{children}</strong>}}
values={{searchString: props.searchString || ''}}
values={{searchTerm: props.searchString || ''}}
/>
</StyledText>
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity/src/core/i18n/bundles/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export const studioLocaleStrings = {

/** Message shown when no documents were found that matched the given search string */
'inputs.reference.no-results-for-query':
'No results for <SearchTerm>“{{searchString}}”</SearchTerm>',
'No results for <SearchTerm>“{{searchTerm}}”</SearchTerm>',

/** Label for action to create a new document from the reference input */
'inputs.reference.action.create-new-document': 'Create new',
Expand Down

0 comments on commit c89c092

Please sign in to comment.