Container images / publish (., deploy/pocketbase/Dockerfile, evoliohealth-pocketbase) (push) Canceled after 0s
Container images / publish (., server/Dockerfile, evoliohealth-server) (push) Canceled after 0s
Checks / go (push) Canceled after 0s
Checks / flutter (push) Canceled after 0s
Checks / compose (push) Canceled after 0s
Android development APK / apk (push) Canceled after 0s
63 lines
3.0 KiB
Dart
63 lines
3.0 KiB
Dart
import 'package:flutter/material.dart';
|
||
|
||
class AppStrings {
|
||
const AppStrings._(this.locale);
|
||
|
||
final Locale locale;
|
||
|
||
static const supportedLocales = [Locale('en'), Locale('fr')];
|
||
|
||
static AppStrings of(BuildContext context) =>
|
||
AppStrings._(Localizations.localeOf(context));
|
||
|
||
bool get _fr => locale.languageCode == 'fr';
|
||
|
||
String get appName => 'EvolioHealth';
|
||
String get overview => _fr ? 'Aperçu' : 'Overview';
|
||
String get activity => _fr ? 'Activité' : 'Activity';
|
||
String get measurements => _fr ? 'Mesures' : 'Measurements';
|
||
String get photos => _fr ? 'Photos' : 'Photos';
|
||
String get exports => _fr ? 'Exports' : 'Exports';
|
||
String get settings => _fr ? 'Paramètres' : 'Settings';
|
||
String get greeting => _fr ? 'Bonjour, Alex' : 'Hello, Alex';
|
||
String get subtitle => _fr
|
||
? 'Voici l’évolution de vos mesures personnelles.'
|
||
: 'Here is the evolution of your personal measurements.';
|
||
String get currentWeight => _fr ? 'Poids actuel' : 'Current weight';
|
||
String get lastMeasurement => _fr ? 'Dernière mesure' : 'Last measurement';
|
||
String get bodyFat => _fr ? 'Masse grasse estimée' : 'Estimated body fat';
|
||
String get pendingSync => _fr ? 'Synchronisation' : 'Synchronization';
|
||
String get synchronized => _fr ? 'À jour' : 'Up to date';
|
||
String get newSession => _fr ? 'Nouvelle session' : 'New session';
|
||
String get prototypeNotice => _fr
|
||
? 'Cette maquette n’est pas encore connectée à l’API EvolioHealth.'
|
||
: 'This prototype is not connected to the EvolioHealth API yet.';
|
||
String get silhouetteTitle =>
|
||
_fr ? 'Silhouette indicative' : 'Indicative silhouette';
|
||
String get silhouetteHint => _fr
|
||
? 'Aperçu paramétrique basé sur vos mesures'
|
||
: 'Parametric preview based on your measurements';
|
||
String get silhouetteDisclaimer => _fr
|
||
? 'Visualisation indicative uniquement — ce n’est ni une reconstruction fidèle ni une analyse médicale.'
|
||
: 'Indicative visualization only — not a faithful reconstruction or medical analysis.';
|
||
String get evolution => _fr ? 'Évolution du poids' : 'Weight evolution';
|
||
String get oneWeek => _fr ? '1 sem.' : '1 wk';
|
||
String get oneMonth => _fr ? '1 mois' : '1 mo';
|
||
String get sixMonths => _fr ? '6 mois' : '6 mo';
|
||
String get latest => _fr ? 'Récent' : 'Latest';
|
||
String get bodyMeasurements => _fr ? 'Mensurations' : 'Body measurements';
|
||
String get chest => _fr ? 'Poitrine' : 'Chest';
|
||
String get waist => _fr ? 'Taille' : 'Waist';
|
||
String get hips => _fr ? 'Hanches' : 'Hips';
|
||
String get arms => _fr ? 'Bras' : 'Arms';
|
||
String get shoulders => _fr ? 'Épaules' : 'Shoulders';
|
||
String get thighs => _fr ? 'Cuisses' : 'Thighs';
|
||
String get history => _fr ? 'Voir l’historique' : 'View history';
|
||
String get guidance => _fr
|
||
? 'Pour suivre une tendance fiable, effectuez vos mesures dans des conditions similaires.'
|
||
: 'For a reliable trend, take measurements under similar conditions.';
|
||
String get dateLabel => _fr ? '14 juillet 2026' : 'July 14, 2026';
|
||
String get kilograms => 'kg';
|
||
String get centimeters => 'cm';
|
||
}
|