Merge pull request #13533 from yangfei4913438/fix-content-types-builder

fix: content-types builder search button tooltip
This commit is contained in:
Julie Plantey 2022-07-05 09:25:26 +02:00 committed by GitHub
commit 8d85946290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 5 deletions

View File

@ -309,8 +309,8 @@ function ListView({
{ target: headerLayoutTitle }
)}
placeholder={formatMessage({
id: 'app.component.search.placeholder',
defaultMessage: 'Search...',
id: 'global.search',
defaultMessage: 'Search',
})}
trackedEvent="didSearch"
/>

View File

@ -679,6 +679,7 @@
"content-manager.apiError.This attribute must be unique": "{field} must be unique",
"form.button.continue": "Continue",
"form.button.done": "Done",
"global.search": "Search",
"global.actions": "Actions",
"global.back": "Back",
"global.change-password": "Change password",

View File

@ -604,7 +604,7 @@
"content-type-builder.menu.section.single-types.name": "单一类型",
"content-type-builder.plugin.name": "模型构建器",
"form.button.done": "完成",
"global.Search": "搜索",
"global.search": "搜索",
"global.back": "返回",
"global.content-manager": "内容管理",
"global.delete-target": "删除 {target}",

View File

@ -36,7 +36,10 @@ const ContentTypeBuilderNav = () => {
id: `${getTrad('plugin.name')}`,
defaultMessage: 'Content-Types Builder',
})}
searchLabel="Search..."
searchLabel={formatMessage({
id: 'global.search',
defaultMessage: 'Search',
})}
/>
<SubNavSections>
{menu.map(section => {

View File

@ -71,7 +71,7 @@ const SearchURLQuery = ({ label, placeholder, trackedEvent }) => {
<IconButton
ref={iconButtonRef}
icon={<Icon as={SearchIcon} color="neutral800" />}
label="Search"
label={formatMessage({ id: 'global.search', defaultMessage: 'Search' })}
onClick={handleToggle}
/>
);