chore: rebrand public site as MirrorITS

This commit is contained in:
2026-11-02 10:58:32 +08:00
parent b734b17ad4
commit bbe0aaf88e
13 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ function applyTheme() {
function applyLocale() {
i18n.global.locale.value = locale
document.documentElement.lang = locale
document.title = `${path} · ${t('directory.title')} · MirrorOUC`
document.title = `${path} · ${t('directory.title')} · ${t('common.brand')}`
for (const element of document.querySelectorAll<HTMLElement>('[data-i18n]')) element.textContent = t(element.dataset.i18n!)
for (const [attribute, data] of [['aria-label', 'i18nAria'], ['placeholder', 'i18nPlaceholder']] as const) {
for (const element of document.querySelectorAll<HTMLElement>(`[data-${data === 'i18nAria' ? 'i18n-aria' : 'i18n-placeholder'}]`)) element.setAttribute(attribute, t(element.dataset[data]!))