mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
deploy: cbe012d54c7007bfbbb82e71a9f1184500fb0824
This commit is contained in:
parent
48ad066bbf
commit
40c9958fb5
@ -1,6 +1,6 @@
|
|||||||
const themeFlyoutDisplay = "hidden";
|
const themeFlyoutDisplay = "hidden";
|
||||||
const themeVersionSelector = "True";
|
const themeVersionSelector = true;
|
||||||
const themeLanguageSelector = "True";
|
const themeLanguageSelector = true;
|
||||||
|
|
||||||
if (themeFlyoutDisplay === "attached") {
|
if (themeFlyoutDisplay === "attached") {
|
||||||
function renderLanguages(config) {
|
function renderLanguages(config) {
|
||||||
@ -8,10 +8,14 @@ if (themeFlyoutDisplay === "attached") {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Insert the current language to the options on the selector
|
||||||
|
let languages = config.projects.translations.concat(config.projects.current);
|
||||||
|
languages = languages.sort((a, b) => a.language.name.localeCompare(b.language.name));
|
||||||
|
|
||||||
const languagesHTML = `
|
const languagesHTML = `
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Languages</dt>
|
<dt>Languages</dt>
|
||||||
${config.projects.translations
|
${languages
|
||||||
.map(
|
.map(
|
||||||
(translation) => `
|
(translation) => `
|
||||||
<dd ${translation.slug == config.projects.current.slug ? 'class="rtd-current-item"' : ""}>
|
<dd ${translation.slug == config.projects.current.slug ? 'class="rtd-current-item"' : ""}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user