update frontend ui, i18n, filters, and deps

This commit is contained in:
2026-01-22 06:18:04 +01:00
parent 88624f3bed
commit 2b659920c2
52 changed files with 13874 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
export const useApi = () => {
const config = useRuntimeConfig()
const apiBase = config.public.apiBase
const getErrorMessage = (err: unknown, fallback: string) => {
const anyErr = err as { data?: { erreur?: string }; message?: string }
if (anyErr?.data?.erreur) return anyErr.data.erreur
if (anyErr?.message) return anyErr.message
return fallback
}
return { apiBase, getErrorMessage }
}