« get me outta code hell

content: generateFooterLocalizationLinks - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/misc-templates.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-04-08 18:18:13 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-04-08 18:26:12 -0300
commit76845689c624b603509abbe6f0a289362bb42a04 (patch)
tree04b59dce0d656aa02759fe638c609fc66f8781a5 /src/misc-templates.js
parent392d6ec799c87ef536335211cb34b1b795147369 (diff)
content: generateFooterLocalizationLinks
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r--src/misc-templates.js38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js
index 1842970..a8a207a 100644
--- a/src/misc-templates.js
+++ b/src/misc-templates.js
@@ -463,42 +463,6 @@ function unbound_generateStickyHeadingContainer({
     ]);
 }
 
-// Footer stuff
-
-function unbound_getFooterLocalizationLinks({
-  html,
-  defaultLanguage,
-  language,
-  languages,
-  pagePath,
-  to,
-}) {
-  const links = Object.entries(languages)
-    .filter(([code, language]) => code !== 'default' && !language.hidden)
-    .map(([code, language]) => language)
-    .sort(({name: a}, {name: b}) => (a < b ? -1 : a > b ? 1 : 0))
-    .map((language) =>
-      html.tag('span',
-        html.tag('a',
-          {
-            href:
-              language === defaultLanguage
-                ? to(
-                    'localizedDefaultLanguage.' + pagePath[0],
-                    ...pagePath.slice(1))
-                : to(
-                    'localizedWithBaseDirectory.' + pagePath[0],
-                    language.code,
-                    ...pagePath.slice(1)),
-          },
-          language.name)));
-
-  return html.tag('div', {class: 'footer-localization-links'},
-    language.$('misc.uiLanguage', {
-      languages: links.join('\n'),
-    }));
-}
-
 // Exports
 
 export {
@@ -516,6 +480,4 @@ export {
   unbound_generateNavigationLinks as generateNavigationLinks,
 
   unbound_generateStickyHeadingContainer as generateStickyHeadingContainer,
-
-  unbound_getFooterLocalizationLinks as getFooterLocalizationLinks,
 }