-
-
Notifications
You must be signed in to change notification settings - Fork 756
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvement of the
ContentsBreadcrumbs
component (#3903)
* Improvement of the `ContentsBreadcrumbs` component * Update src/components/manage/Contents/ContentsBreadcrumbs.jsx Co-authored-by: David Glick <[email protected]> * Fix typo * locales Co-authored-by: David Glick <[email protected]>
- Loading branch information
Showing
18 changed files
with
72 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Plone\n" | ||
"POT-Creation-Date: 2022-11-09T21:02:11.332Z\n" | ||
"POT-Creation-Date: 2022-11-16T16:07:48.403Z\n" | ||
"Last-Translator: Plone i18n <[email protected]>\n" | ||
"Language-Team: Plone i18n <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
|
@@ -1571,6 +1571,7 @@ msgstr "" | |
|
||
#: components/manage/Contents/Contents | ||
#: components/manage/Contents/ContentsBreadcrumbs | ||
#: components/manage/Contents/ContentsBreadcrumbsHomeItem | ||
#: components/theme/Breadcrumbs/Breadcrumbs | ||
# defaultMessage: Home | ||
msgid "Home" | ||
|
@@ -2700,6 +2701,7 @@ msgid "Roles" | |
msgstr "" | ||
|
||
#: components/manage/Contents/ContentsBreadcrumbs | ||
#: components/manage/Contents/ContentsBreadcrumbsRootItem | ||
# defaultMessage: Root | ||
msgid "Root" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/components/manage/Contents/ContentsBreadcrumbsHomeItem.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { defineMessages, useIntl } from 'react-intl'; | ||
|
||
const messages = defineMessages({ | ||
home: { | ||
id: 'Home', | ||
defaultMessage: 'Home', | ||
}, | ||
}); | ||
|
||
const ContentsBreadcrumbsHomeItem = () => { | ||
const intl = useIntl(); | ||
|
||
return <>{intl.formatMessage(messages.home)}</>; | ||
}; | ||
|
||
export default ContentsBreadcrumbsHomeItem; |
16 changes: 16 additions & 0 deletions
16
src/components/manage/Contents/ContentsBreadcrumbsRootItem.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { defineMessages, useIntl } from 'react-intl'; | ||
|
||
const messages = defineMessages({ | ||
root: { | ||
id: 'Root', | ||
defaultMessage: 'Root', | ||
}, | ||
}); | ||
|
||
const ContentsBreadcrumbsRootItem = () => { | ||
const intl = useIntl(); | ||
|
||
return <>{intl.formatMessage(messages.root)}</>; | ||
}; | ||
|
||
export default ContentsBreadcrumbsRootItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters