Languages
The storefront ships in English, German, French, Italian and English (Singapore) with next-intl. Each page lives under its locale: /en/shop, /de/shop and so on.
| File | Purpose |
|---|---|
apps/web/src/i18n/routing.ts |
The list of locales and the default |
apps/web/messages/<locale>.json |
The translated text |
Add a language
- Copy
apps/web/messages/en.jsonto, for example,es.jsonand translate the values. Keep the keys. - Add
"es"tolocalesinapps/web/src/i18n/routing.ts. - Restart
pnpm dev:web./esnow works and appears in the language switcher.
Edit text
Find the text in en.json (and the other language files) and change it. Text from the CMS, such as product names, banners and pages, is edited in the admin.
Currency
Prices are stored in USD. Shoppers can switch to another currency on the storefront and in the mobile app, and prices are converted for display.
The list lives in apps/api/controllers/currencyController.ts and is served at GET /api/currencies:
const CURRENCIES = [
{ code: "USD", name: "US Dollar", symbol: "$", locale: "en-US", rate: 1 },
{ code: "EUR", name: "Euro", symbol: "€", locale: "de-DE", rate: 0.92 },
// add or edit currencies here
];
rate is how many units equal 1 USD. Update the rates, or replace the table with a live exchange-rate service.
Note
Stripe charges in STRIPE_CURRENCY from the API settings. The currency switcher changes what shoppers see, not what Stripe charges.
