[3d] add missing i18n (#2700)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Terry Jia
2025-02-23 23:50:13 -05:00
committed by GitHub
parent eb951c9cf9
commit 822a8e02f8
7 changed files with 30 additions and 6 deletions

View File

@@ -23,7 +23,7 @@
@click="selectCategory(category)"
>
<i :class="getCategoryIcon(category)"></i>
<span class="text-white">{{ label }}</span>
<span class="text-white">{{ t(label) }}</span>
</Button>
</div>
</div>
@@ -283,10 +283,10 @@ const props = defineProps<{
const isMenuOpen = ref(false)
const activeCategory = ref<'scene' | 'model' | 'camera' | 'light'>('scene')
const categories = {
scene: 'scene',
model: 'model',
camera: 'camera',
light: 'light'
scene: 'load3d.scene',
model: 'load3d.model',
camera: 'load3d.camera',
light: 'load3d.light'
}
const toggleMenu = () => {