Configuration File:
config/shared/currency.tsOverview
The currency configuration controls how prices are displayed throughout your entire website:- Currency symbol ($, €, £, ¥, ₹)
- Currency code (USD, EUR, GBP, etc.)
- Symbol position (before or after amount)
config/shared/currency.ts
Quick Start
Configuration Structure
Common Currency Examples
- Before Position
- After Position
Currency Symbols Quick Reference
| Currency | Code | Symbol | Position | Example |
|---|---|---|---|---|
| US Dollar | USD | $ | before | $99.99 |
| Euro | EUR | € | after | 99.99€ |
| British Pound | GBP | £ | before | £99.99 |
| Indian Rupee | INR | ₹ | before | ₹99.99 |
| Japanese Yen | JPY | ¥ | before | ¥99 |
| Australian Dollar | AUD | $ | before | $99.99 |
| Canadian Dollar | CAD | $ | before | $99.99 |
| Swiss Franc | CHF | CHF | before | CHF 99.99 |
| Chinese Yuan | CNY | ¥ | before | ¥99.99 |
| Mexican Peso | MXN | $ | before | $99.99 |
| Brazilian Real | BRL | R$ | before | R$ 99.99 |
| Singapore Dollar | SGD | $ | before | $99.99 |
| Hong Kong Dollar | HKD | HK$ | before | HK$99.99 |
Troubleshooting
Symbol not displaying
- Check encoding: File must be UTF-8
- Copy symbol: Use copy-paste instead of typing
- Use HTML entity: Some symbols have HTML codes
- Font support: Ensure your font includes the symbol
Wrong position
For USD ($99.99):Multiple dollar signs
If you use USD, AUD, CAD (all use $), the code differentiates them:Prices look wrong after currency change
When changing currency, you must also:- Update all price values in game configs
- Update pricing in VPS/dedicated/web hosting configs
- Recalculate based on exchange rates
- Update text mentions of specific prices

