[i18n] Translate toast messages (#3228)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2025-03-24 22:22:17 -04:00
committed by GitHub
parent 6c18781663
commit 24dcaa7f72
16 changed files with 191 additions and 43 deletions

View File

@@ -1,3 +1,4 @@
import { t } from '@/i18n'
import { api } from '@/scripts/api'
import { app } from '@/scripts/app'
import { useToastStore } from '@/stores/toastStore'
@@ -55,7 +56,9 @@ class Load3dUtils {
} catch (error) {
console.error('Upload error:', error)
useToastStore().addAlert(
error instanceof Error ? error.message : 'Upload failed'
error instanceof Error
? error.message
: t('toastMessages.fileUploadFailed')
)
}