mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-05 05:32:02 +00:00
This PR - adds missing locale keys for 3D viewer toast strings, assets sidebar labels, and node error keys - cleans up the selection toolbox, media previews, node components, and widget uploader to rely on `$t`/`st` (exposed to template scope at compile time) instead of importing from `useI18n`. - updates `eslint.config.ts` to teach the Intlify rule about the locale layout ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6622-chore-add-missing-i18n-keys-in-sidebar-assets-toolbox-dropdowns-2a36d73d365081ae8694eb4f8ebb822a) by [Unito](https://www.unito.io) --------- Co-authored-by: Alexander Brown <drjkl@comfy.org>
26 lines
521 B
Vue
26 lines
521 B
Vue
<template>
|
|
<Button
|
|
v-tooltip.top="{
|
|
value: $t('commands.Comfy_3DViewer_Open3DViewer.label'),
|
|
showDelay: 1000
|
|
}"
|
|
severity="secondary"
|
|
text
|
|
icon="pi pi-pencil"
|
|
icon-class="w-4 h-4"
|
|
@click="open3DViewer"
|
|
/>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import Button from 'primevue/button'
|
|
|
|
import { useCommandStore } from '@/stores/commandStore'
|
|
|
|
const commandStore = useCommandStore()
|
|
|
|
const open3DViewer = () => {
|
|
void commandStore.execute('Comfy.3DViewer.Open3DViewer')
|
|
}
|
|
</script>
|