2024-05-16 09:39:34 -04:00
|
|
|
li.dropdown.dropup.subdued(dropdown).language-picker
|
2024-05-17 10:49:18 -04:00
|
|
|
a#language-picker-toggle(
|
2024-05-16 09:39:34 -04:00
|
|
|
href="#",
|
|
|
|
dropdown-toggle,
|
|
|
|
data-ol-lang-selector-tooltip,
|
|
|
|
data-bs-toggle="dropdown",
|
|
|
|
role="button"
|
|
|
|
aria-haspopup="true",
|
|
|
|
aria-expanded="false",
|
|
|
|
aria-label="Select " + translate('language'),
|
|
|
|
tooltip=translate('language')
|
|
|
|
title=translate('language')
|
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-language
|
|
|
|
|
|
|
|
|
| #{settings.translatedLanguages[currentLngCode]}
|
|
|
|
|
|
|
|
ul.dropdown-menu(role="menu" aria-labelledby="language-picker-toggle")
|
|
|
|
li.dropdown-header #{translate("language")}
|
|
|
|
each subdomainDetails, subdomain in settings.i18n.subdomainLang
|
|
|
|
if !subdomainDetails.hide
|
|
|
|
- let isActive = subdomainDetails.lngCode === currentLngCode
|
2024-07-22 04:10:54 -04:00
|
|
|
li.lng-option
|
2024-05-24 08:12:51 -04:00
|
|
|
a.menu-indent(href=subdomainDetails.url+currentUrlWithQueryParams, role="menuitem", class=isActive ? 'dropdown-item active' : 'dropdown-item', aria-selected=isActive ? 'true' : 'false')
|
2024-05-16 09:39:34 -04:00
|
|
|
| #{settings.translatedLanguages[subdomainDetails.lngCode]}
|
|
|
|
if subdomainDetails.lngCode === currentLngCode
|
|
|
|
span.material-symbols.dropdown-item-trailing-icon.pull-right(aria-hidden="true") check
|