This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
<template>
|
||||
<div class="app-root" :class="{ 'zh': locale === 'zh' }" :data-lang="locale">
|
||||
<AnimatedBackground />
|
||||
<NuxtRouteAnnouncer />
|
||||
<div class="container">
|
||||
<NuxtPage />
|
||||
@@ -10,6 +11,8 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import AnimatedBackground from './components/parts/AnimatedBackground.vue';
|
||||
|
||||
const { locale } = useI18n()
|
||||
|
||||
// Set global html lang attribute based on current locale
|
||||
|
||||
Reference in New Issue
Block a user