Replace multiple comma-separated languages with 'mul'

- Refactored language code handling to replace multiple comma-separated values with 'mul'.
- Single-language entries remain unchanged.
- created the helper function to get the lang tag
- ensured the consistent behaviour for js and nojs version for the kiwix library view
This commit is contained in:
Naman Pahwa
2025-02-23 00:19:21 +05:30
parent 610b8cbb2a
commit a55e8565d1
4 changed files with 33 additions and 7 deletions

View File

@@ -118,7 +118,7 @@
</div>
</a>
<div class="book__meta">
<div class="book__languageTag" {{languageAttr}}>{{langCode}}</div>
<div class="book__languageTag" title="{{langTag.langFullString}}" aria-label="{{langTag.langFullString}}">{{langTag.langShortString}}</div>
<div class="book__tags"><div class="book__tags--wrapper">
{{#tagList}}
<span class="tag__link" aria-label='{{tag}}' title='{{tag}}'>{{tag}}</span>