-
Atlas · Countries visited
-
{countries.length} of 195
+
{t('dashboard.atlas.countriesVisited')}
+
{countries.length} {t('dashboard.atlas.ofTotal', { total: 195 })}
{countries.slice(0, 5).map((c, i) => (
@@ -551,27 +553,27 @@ function AtlasStats({ stats }: { stats: TravelStats | null }): React.ReactElemen
-
Trips total
+
{t('dashboard.atlas.tripsTotal')}
{stats?.totalTrips ?? 0}
-
{stats?.totalPlaces ?? 0} places mapped
+
{t('dashboard.atlas.placesMapped', { count: stats?.totalPlaces ?? 0 })}
-
Days traveled
-
{stats?.totalDays ?? 0} days
-
across all trips
+
{t('dashboard.atlas.daysTraveled')}
+
{stats?.totalDays ?? 0} {t('dashboard.atlas.daysUnit')}
+
{t('dashboard.atlas.acrossAllTrips')}
-
Distance flown
-
{distanceText} km
-
≈ {equatorTimes}× around the equator
+
{t('dashboard.atlas.distanceFlown')}
+
{distanceText} {t('dashboard.atlas.kmUnit')}
+
{t('dashboard.atlas.aroundEquator', { count: equatorTimes })}
-
{trip.day_count ?? 0}Days
-
{trip.place_count ?? 0}Places
-
{trip.shared_count ?? 0}{trip.shared_count === 1 ? 'Buddy' : 'Buddies'}
+
{trip.day_count ?? 0}{t('dashboard.days')}
+
{trip.place_count ?? 0}{t('dashboard.places')}
+
{trip.shared_count ?? 0}{trip.shared_count === 1 ? t('dashboard.card.buddyOne') : t('dashboard.members')}
@@ -642,6 +645,7 @@ function TripCard({ trip, locale, onOpen, onEdit, onCopy, onArchive, onDelete }:
const FX_FALLBACK = ['EUR', 'USD', 'GBP', 'CHF', 'JPY', 'CAD', 'AUD', 'CNY', 'SEK', 'NOK', 'DKK', 'PLN', 'CZK', 'HUF', 'TRY', 'THB', 'INR', 'BRL', 'MXN', 'ZAR']
function CurrencyTool(): React.ReactElement {
+ const { t } = useTranslation()
const [from, setFrom] = useState(() => localStorage.getItem('trek_fx_from') || 'EUR')
const [to, setTo] = useState(() => localStorage.getItem('trek_fx_to') || 'USD')
const [amount, setAmount] = useState('100')
@@ -667,24 +671,24 @@ function CurrencyTool(): React.ReactElement {
return (