Skip to content

fix: i18n fixes#101

Merged
JoelVR17 merged 1 commit intoTrustless-Work:developfrom
FabianSanchezD:fix/i18n-fixes
Mar 14, 2026
Merged

fix: i18n fixes#101
JoelVR17 merged 1 commit intoTrustless-Work:developfrom
FabianSanchezD:fix/i18n-fixes

Conversation

@FabianSanchezD
Copy link
Copy Markdown
Contributor

@FabianSanchezD FabianSanchezD commented Mar 14, 2026

Summary by CodeRabbit

  • New Features

    • Added documentation link to the sidebar with localized labels
    • Campaign creation workflow now automatically saves and restores user progress
    • Enhanced currency value formatting throughout the application
  • Localization

    • Documentation link and tooltip text now available in English and Spanish

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 14, 2026

@FabianSanchezD is attempting to deploy a commit to the Trustless Work Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 14, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6f07354b-5c0e-464c-b7e9-bf5531057a4e

📥 Commits

Reviewing files that changed from the base of the PR and between cd6567d and a5bbb8d.

📒 Files selected for processing (5)
  • apps/backoffice-tokenization/messages/en.json
  • apps/backoffice-tokenization/messages/es.json
  • apps/backoffice-tokenization/src/components/layout/app-sidebar.tsx
  • apps/backoffice-tokenization/src/features/campaigns/hooks/use-create-campaign.ts
  • apps/backoffice-tokenization/src/lib/utils.ts

📝 Walkthrough

Walkthrough

The PR adds localized documentation navigation links to the backoffice tokenization interface, implements localStorage-based persistence for campaign creation form state with step tracking, and introduces a currency formatting utility function.

Changes

Cohort / File(s) Summary
Localization
apps/backoffice-tokenization/messages/en.json, apps/backoffice-tokenization/messages/es.json
Added two new translation keys under the nav object: documentation and documentationTooltip with corresponding English and Spanish values.
UI Component
apps/backoffice-tokenization/src/components/layout/app-sidebar.tsx
Moved footerItems definition into the AppSidebar function and replaced static text with translation lookups using t("documentation") and t("documentationTooltip").
Form Persistence
apps/backoffice-tokenization/src/features/campaigns/hooks/use-create-campaign.ts
Added localStorage persistence for campaign creation flow: new step field in FlowState interface, restoration of saved form state and escrow details on mount, and two new effects to persist form and step changes to localStorage.
Utilities
apps/backoffice-tokenization/src/lib/utils.ts
Added new formatCurrency() function that formats numeric amounts to two decimal places using en-US locale with optional currency symbol prefix.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • Feat/i18n en es #100 — Introduces the same translation keys (documentation, documentationTooltip) for the nav object that this PR consumes in the AppSidebar component.

Suggested reviewers

  • armandocodecr
  • JoelVR17

Poem

🐰 A sidebar hops with tales to tell,
Step-by-step through localStorage's well,
Currencies formatted, docs at hand,
Translation keys help us understand!

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
backoffice-tokenization Ready Ready Preview, Comment Mar 14, 2026 2:53am
investor Ready Ready Preview, Comment Mar 14, 2026 2:53am

Request Review

@FabianSanchezD FabianSanchezD marked this pull request as ready for review March 14, 2026 02:55
@JoelVR17 JoelVR17 merged commit 37d88b6 into Trustless-Work:develop Mar 14, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants