-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce the ability to pass through lang and custom title to the Contents list component. If a title lang is not supplied, a lang attribute will not be added. Likewise, if a custom title is not specified, the component will default to using "Contents" as a title. The need for this arose because in some instances (for example on world location pages), when viewing a translation of the page, this title of this component will be in English and not marked as such. If a translation exists, we should use the translated string as the title (e.g Contenu if the page is in French). Otherwise we can use the English fallback, as long as lang="en" is specified.
- Loading branch information
1 parent
6031cf1
commit 3f628a4
Showing
4 changed files
with
45 additions
and
2 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