Adding the translation dropdown to the menu.

This commit is contained in:
Jocelyn Badgley (Twipped) 2021-09-20 15:01:23 -07:00
parent 7878f9b9f2
commit f82782d70c
5 changed files with 13 additions and 1 deletions

View File

@ -10,5 +10,7 @@ module.exports = exports = {
FOOTER_COPYRIGHT2: 'and Other Contributors', FOOTER_COPYRIGHT2: 'and Other Contributors',
'TRANS_TWITTER_TOPICS': 'Trans Twitter Topics', 'TRANS_TWITTER_TOPICS': 'Trans Twitter Topics',
MENU_LANGUAGE: 'English (EN)',
}; };

View File

@ -4,5 +4,6 @@ module.exports = exports = {
HEADER_TITLE: 'Eso es Disforia de Género, <abbr title="Para Su Información">PSI</abbr>', HEADER_TITLE: 'Eso es Disforia de Género, <abbr title="Para Su Información">PSI</abbr>',
MENU_LANGUAGE: 'Español (ES)',
}; };

View File

@ -10,5 +10,7 @@ module.exports = exports = {
FOOTER_COPYRIGHT2: 'and Other Contributors', FOOTER_COPYRIGHT2: 'and Other Contributors',
'TRANS_TWITTER_TOPICS': 'Trans Twitter Topics', 'TRANS_TWITTER_TOPICS': 'Trans Twitter Topics',
MENU_LANGUAGE: '中文 (ZH)',
}; };

View File

@ -64,6 +64,13 @@
<div class="top-nav"> <div class="top-nav">
<ul class="top-nav-inner"> <ul class="top-nav-inner">
<li>{{import (join [ '/public/' page.lang '/_menu' ] "")}}</li> <li>{{import (join [ '/public/' page.lang '/_menu' ] "")}}</li>
<li>
<a href="/en/" class="top-nav-item dropdown-toggle" id="nav-lang" data-toggle="dropdown" data-flip="false" aria-haspopup="true" aria-expanded="false">{{lang 'MENU_LANGUAGE'}}</a>
<div class="dropdown-menu" aria-labelledby="nav-gdb">
<a href="/en/" class="{{#is page.lang 'en'}}active {{/is}}dropdown-item">English</a>
<a href="/zh/" class="{{#is page.lang 'zh'}}active {{/is}}dropdown-item">中文 (Chinese)</a>
</div>
</li>
<li><a href="/tweets/" class="top-nav-item" title="{{{lang 'TRANS_TWITTER_TOPICS'}}}"><img src="/images/transtwitter.png" width="24" height="24" alt=""></a></li> <li><a href="/tweets/" class="top-nav-item" title="{{{lang 'TRANS_TWITTER_TOPICS'}}}"><img src="/images/transtwitter.png" width="24" height="24" alt=""></a></li>
<li class="disposable"><a href="https://github.com/GenderDysphoria/GenderDysphoria.fyi" class="top-nav-item">{{icon 'brands/github'}}</a></li> <li class="disposable"><a href="https://github.com/GenderDysphoria/GenderDysphoria.fyi" class="top-nav-item">{{icon 'brands/github'}}</a></li>
<li class="disposable"><a href="https://patreon.com/curvyandtrans" class="top-nav-item" title="Patreon">{{icon 'brands/patreon'}}</a></li> <li class="disposable"><a href="https://patreon.com/curvyandtrans" class="top-nav-item" title="Patreon">{{icon 'brands/patreon'}}</a></li>