feat: extend language selection in settings to all 7 supported locales
This commit is contained in:
@@ -201,9 +201,9 @@ class PageSettings extends HTMLElement {
|
|||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<label for="lang-select">${t('settings.language')}</label>
|
<label for="lang-select">${t('settings.language')}</label>
|
||||||
<select id="lang-select">
|
<select id="lang-select">
|
||||||
<option value="de" ${currentLang === 'de' ? 'selected' : ''}>Deutsch</option>
|
${i18n.getSupportedLocales().map(locale => `
|
||||||
<option value="en" ${currentLang === 'en' ? 'selected' : ''}>English</option>
|
<option value="${locale}" ${currentLang === locale ? 'selected' : ''}>${i18n.getLocaleDisplayName(locale)}</option>
|
||||||
<option value="fr" ${currentLang === 'fr' ? 'selected' : ''}>Français</option>
|
`).join('')}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user