mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-10-27 09:40:40 +00:00
fix: Ensure HTML markup in landing content is rendered correctly by the JS engine
This commit is contained in:
1 parent
9de0b53080
commit
553a7d42c1
2 files changed
+16
-2
No files matched your search
+8
-1
@@ -301,7 +301,14 @@
|
||||
localStorage.setItem('voxvera_lang', lang);
|
||||
document.querySelectorAll('[data-i18n]').forEach(el => {
|
||||
const path = el.getAttribute('data-i18n');
|
||||
el.innerText = t(path, lang);
|
||||
const translation = t(path, lang);
|
||||
if (translation) {
|
||||
if (path.startsWith('landing.') || path.includes('subtitle') || path.includes('content')) {
|
||||
el.innerHTML = translation;
|
||||
} else {
|
||||
el.innerText = translation;
|
||||
}
|
||||
}
|
||||
});
|
||||
document.getElementById('lang-selector').value = lang;
|
||||
document.documentElement.lang = lang;
|
||||
|
||||
@@ -301,7 +301,14 @@
|
||||
localStorage.setItem('voxvera_lang', lang);
|
||||
document.querySelectorAll('[data-i18n]').forEach(el => {
|
||||
const path = el.getAttribute('data-i18n');
|
||||
el.innerText = t(path, lang);
|
||||
const translation = t(path, lang);
|
||||
if (translation) {
|
||||
if (path.startsWith('landing.') || path.includes('subtitle') || path.includes('content')) {
|
||||
el.innerHTML = translation;
|
||||
} else {
|
||||
el.innerText = translation;
|
||||
}
|
||||
}
|
||||
});
|
||||
document.getElementById('lang-selector').value = lang;
|
||||
document.documentElement.lang = lang;
|
||||
|
||||
Reference in new issue
Block a user