velxio/frontend/src/i18n
David Montero b5a80a65b9 feat(editor): add BOM-export button + handleExportBom flow
Phase 3 D3.1 — front-end half of the BOM export. The toolbar gains a
new spreadsheet-icon button next to the existing project-export button.
On click:

  1. POST is NOT used — the backend endpoint is GET-based and streams a
     CSV. We just open the URL.
  2. 402 (Pro-required) routes the user to /pricing?from=bom_export
     so the page can show the right upgrade narrative.
  3. 401 routes to /login with redirect-back.
  4. 200 triggers a Blob download with Content-Disposition filename.

i18n key editor.toolbar.exportBom added in en/es/pt-br/zh-cn — the
" — Pro" suffix on the tooltip hints at the gating without forcing the
user to discover it only on click.

The button is shown to everyone, not hidden by plan. Free/Maker users
clicking it gets the 402 route to /pricing, which is intentional — that
is the upgrade-discovery funnel we want, not a silent locked icon.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 03:12:52 +02:00
..
locales feat(editor): add BOM-export button + handleExportBom flow 2026-05-29 03:12:52 +02:00
LocaleSync.tsx feat(i18n): react-i18next foundation + 9-locale support for header / footer 2026-05-09 00:40:37 -03:00
config.ts feat(i18n): react-i18next foundation + 9-locale support for header / footer 2026-05-09 00:40:37 -03:00
cookie.ts feat(i18n): react-i18next foundation + 9-locale support for header / footer 2026-05-09 00:40:37 -03:00
index.ts fix(i18n): split common.json (editor + about) so all 8 locales translate 2026-05-09 18:50:21 -03:00
path.ts feat(i18n): react-i18next foundation + 9-locale support for header / footer 2026-05-09 00:40:37 -03:00
useLocalizedNavigate.ts feat(i18n): react-i18next foundation + 9-locale support for header / footer 2026-05-09 00:40:37 -03:00