Files
supabase/apps/docs/components/Price.tsx
Kevin Grüneberg e1bd23d66f fix: do not translate USD prices (#35466)
When translation tools go over prices, they wrongfully convert USD into other currencies without changing the price. $25 becomes Rp25 (Rupiah).

By using `translate='no'` we avoid the translation of pricing info. There are some tooltips left that are not covered yet, but this should be the majority already.

Kept the docs Pricing component as simple as possible, just wrapping in a span to avoid translation, not modifying any formatting.
2025-05-06 12:03:35 +08:00

8 lines
150 B
TypeScript

interface PriceProps {
price: string
}
export const Price: React.FC<PriceProps> = ({ price }) => {
return <span translate="no">${price}</span>
}