fix: Fix i18n infrastructure
Add dev dependency fix paths and key names so that the default HTML lexer can pick them up
This commit is contained in:
@@ -29,10 +29,10 @@ async function initI18next() {
|
||||
function translatePageElements() {
|
||||
// Translate content inside a tag
|
||||
const translatableElements = document.querySelectorAll(
|
||||
"[data-i18n-key]",
|
||||
"[data-i18n]",
|
||||
);
|
||||
translatableElements.forEach((el) => {
|
||||
const key = el.getAttribute("data-i18n-key");
|
||||
const key = el.getAttribute("data-i18n");
|
||||
el.innerHTML = i18next.t(key);
|
||||
});
|
||||
// Translate alt texts
|
||||
|
Reference in New Issue
Block a user