[i18n] Table of contents heading

Should be translateable

Change-Id: I3c4515f16b5300a44f89ebdcd426a9d8ac6ad138
This commit is contained in:
Jon Robson 2022-03-15 09:28:25 -07:00 committed by Jdlrobson
parent 0b3d452083
commit 6855979a92
5 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,7 @@
"vector-search-loader": "Loading search suggestions",
"vector-searchsuggest-containing": "Search for pages containing <strong class=\"wvui-typeahead-search__suggestions__footer__text__query\">$1</strong>",
"vector-intro-page": "Help:Introduction",
"vector-toc-heading": "Contents",
"vector-anon-user-menu-pages": "Pages for logged out editors",
"vector-anon-user-menu-pages-learn": "learn more",
"vector-anon-user-menu-pages-label": "Learn more about editing",

View File

@ -51,6 +51,7 @@
"vector-search-loader": "Text to display below search input while the search suggestion module is loading",
"vector-searchsuggest-containing": "Label used in the special item of the search suggestions list which gives the user an option to perform a full text search for the term. Used in the WVUI typeahead search component.",
"vector-intro-page": "Introduction or tutorial page for the wiki. Typically either Project/Help:Introduction ([[d:Q3945]]) or Project/Help:Tutorial ([[d:Q915263]]).",
"vector-toc-heading": "Heading of table of contents",
"vector-anon-user-menu-pages": "Label describing the anon editor links in the anon user menu",
"vector-anon-user-menu-pages-learn": "Lowercase text of link that goes to Help:Introduction and helps the user learn more about editing",
"vector-anon-user-menu-pages-label": "Accessible version of 'vector-anon-user-menu-pages' link text, prompts user to learn more about editing",

View File

@ -1,6 +1,6 @@
<nav id="mw-panel-toc" class="sidebar-toc" role="navigation" aria-labelledby="sidebar-toc-header">
<div class="sidebar-toc-header">
<h2 class="sidebar-toc-title" aria-hidden="true">Contents</h2>
<h2 class="sidebar-toc-title" aria-hidden="true">{{ msg-vector-toc-heading }}</h2>
</div>
<ul id="table-of-contents">
{{#array-sections}}

View File

@ -50,6 +50,7 @@
"vector-menu-checkbox-collapsed",
"vector-jumptosearch",
"vector-jumptocontent",
"vector-toc-heading",
"search",
"searchbutton",
"searcharticle",

View File

@ -18,6 +18,7 @@ const onToggleClick = jest.fn();
*/
function render( templateProps = {} ) {
const templateData = Object.assign( {
'msg-vector-toc-heading': 'Contents',
'vector-is-collapse-sections-enabled': false,
'array-sections': [ {
toclevel: 1,