Skip to content

Commit

Permalink
Remove unused translation texts from the search header
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Oct 7, 2023
1 parent d6fc0c4 commit 5934485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 40 deletions.
36 changes: 2 additions & 34 deletions src/apps/search-header/search-header.dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,6 @@ export default {
defaultValue: "/advanced-search",
control: { type: "text" }
},
headerDropdownItemAdvancedSearchText: {
name: "Advanced search menu text",
defaultValue: "Advanced search",
control: { type: "text" }
},
advancedSearchSubmitButtonText: {
name: "Advanced search submit button text",
defaultValue: "Submit CQL search query",
control: { type: "text" }
},
advancedSearchMinimalLengthErrorText: {
name: "Advanced search minimal query length error",
defaultValue: "The search query needs to be at least 3 characters long.",
control: { type: "text" }
},
advancedSearchExplanationText: {
name: "Advanced search explanation text",
defaultValue:
"I am some text explaining advanced search. It is not a normal search, so watch out folks.",
control: { type: "text" }
},
searchHeaderAdvancedSearchIconText: {
name: "Search header advanced search icon label",
defaultValue: "Advanced search",
Expand Down Expand Up @@ -142,21 +121,10 @@ export default {
defaultValue: "Input must contain at least one non-whitespace character.",
control: { type: "text" }
},
advancedSearchModalHeaderText: {
name: "Advanced search modal header",
headerDropdownItemAdvancedSearchText: {
name: "Advanced search menu text",
defaultValue: "Advanced search",
control: { type: "text" }
},
advancedSearchModalScreenReaderModalDescriptionText: {
name: "Advanced search modal screen reader description",
defaultValue:
"Advanced search lets you use CQL language to query our database",
control: { type: "text" }
},
advancedSearchModalCloseModalAriaLabelText: {
name: "Advanced search modal - close modal",
defaultValue: "Close the advanced search",
control: { type: "text" }
}
}
} as ComponentMeta<typeof SearchHeaderEntry>;
Expand Down
6 changes: 0 additions & 6 deletions src/apps/search-header/search-header.entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ export interface SearchHeaderTextProps {
stringSuggestionAuthorText?: string;
stringSuggestionWorkText?: string;
stringSuggestionTopicText?: string;
advancedSearchSubmitButtonText: string;
advancedSearchMinimalLengthErrorText: string;
advancedSearchExplanationText: string;
searchHeaderAdvancedSearchIconText: string;
etAlText?: string;
autosuggestBookCategoryText: string;
Expand All @@ -28,9 +25,6 @@ export interface SearchHeaderTextProps {
inText: string;
loadingText: string;
searchNoValidCharactersErrorText: string;
advancedSearchModalHeaderText: string;
advancedSearchModalScreenReaderModalDescriptionText: string;
advancedSearchModalCloseModalAriaLabelText: string;
headerDropdownItemAdvancedSearchText: string;
}

Expand Down

0 comments on commit 5934485

Please sign in to comment.