a5c13a4b3c
- Deleted `next_steps_flutter.md` and `teknisk_beskrivning_flutter.md` files as they were outdated. - Added new `next_steps_flutter.md` and `teknisk_beskrivning_flutter.md` files with updated migration plans and technical descriptions for the Flutter frontend. - Implemented `profile_repository.dart` to handle profile data retrieval and updates using the API. Co-authored-by: Copilot <copilot@github.com>
172 lines
4.0 KiB
Dart
172 lines
4.0 KiB
Dart
// ignore: unused_import
|
|
import 'package:intl/intl.dart' as intl;
|
|
import 'app_localizations.dart';
|
|
|
|
// ignore_for_file: type=lint
|
|
|
|
/// The translations for English (`en`).
|
|
class AppLocalizationsEn extends AppLocalizations {
|
|
AppLocalizationsEn([String locale = 'en']) : super(locale);
|
|
|
|
@override
|
|
String get appTitle => 'Recipe App';
|
|
|
|
@override
|
|
String get retryAction => 'Retry';
|
|
|
|
@override
|
|
String get mealPlanTitle => 'Meal plan';
|
|
|
|
@override
|
|
String get mealPlanLoading => 'Loading meal plan...';
|
|
|
|
@override
|
|
String get mealPlanWeekPrevious => 'Previous week';
|
|
|
|
@override
|
|
String get mealPlanWeekNext => 'Next week';
|
|
|
|
@override
|
|
String get mealPlanWeekCurrent => 'Current week';
|
|
|
|
@override
|
|
String get mealPlanDayNoRecipe => 'Nothing planned';
|
|
|
|
@override
|
|
String get mealPlanSelectRecipe => 'Choose recipe';
|
|
|
|
@override
|
|
String get mealPlanViewRecipe => 'View recipe';
|
|
|
|
@override
|
|
String get mealPlanServingsLabel => 'Servings';
|
|
|
|
@override
|
|
String get mealPlanResetServings => 'Reset';
|
|
|
|
@override
|
|
String get mealPlanSaving => 'Saving...';
|
|
|
|
@override
|
|
String mealPlanPlannedRecipes(int count) {
|
|
String _temp0 = intl.Intl.pluralLogic(
|
|
count,
|
|
locale: localeName,
|
|
other: '# recipes planned',
|
|
one: '# recipe planned',
|
|
);
|
|
return '$_temp0';
|
|
}
|
|
|
|
@override
|
|
String get mealPlanShoppingTitle => 'Shopping list';
|
|
|
|
@override
|
|
String get mealPlanPickRecipeHint =>
|
|
'Choose recipes above to see the combined ingredient list.';
|
|
|
|
@override
|
|
String get mealPlanNoShoppingItems => 'No ingredients to show for this week.';
|
|
|
|
@override
|
|
String get mealPlanNoRecipesTitle => 'There are no recipes to plan yet.';
|
|
|
|
@override
|
|
String get mealPlanNoRecipesDescription =>
|
|
'Create at least one recipe first, then add it to the meal plan.';
|
|
|
|
@override
|
|
String mealPlanMissingCount(int count) {
|
|
String _temp0 = intl.Intl.pluralLogic(
|
|
count,
|
|
locale: localeName,
|
|
other: '# missing',
|
|
one: '# missing',
|
|
);
|
|
return '$_temp0';
|
|
}
|
|
|
|
@override
|
|
String mealPlanPartialCount(int count) {
|
|
String _temp0 = intl.Intl.pluralLogic(
|
|
count,
|
|
locale: localeName,
|
|
other: '# partially at home',
|
|
one: '# partially at home',
|
|
);
|
|
return '$_temp0';
|
|
}
|
|
|
|
@override
|
|
String mealPlanEnoughCount(int count) {
|
|
String _temp0 = intl.Intl.pluralLogic(
|
|
count,
|
|
locale: localeName,
|
|
other: '# at home',
|
|
one: '# at home',
|
|
);
|
|
return '$_temp0';
|
|
}
|
|
|
|
@override
|
|
String mealPlanPantryCount(int count) {
|
|
String _temp0 = intl.Intl.pluralLogic(
|
|
count,
|
|
locale: localeName,
|
|
other: '# pantry staples',
|
|
one: '# pantry staple',
|
|
);
|
|
return '$_temp0';
|
|
}
|
|
|
|
@override
|
|
String get mealPlanAllAtHome => 'You already have everything at home.';
|
|
|
|
@override
|
|
String get mealPlanStatusMissing => 'Missing';
|
|
|
|
@override
|
|
String get mealPlanStatusPartial => 'Partially at home';
|
|
|
|
@override
|
|
String get mealPlanStatusEnough => 'At home';
|
|
|
|
@override
|
|
String get mealPlanStatusPantry => 'Pantry staple';
|
|
|
|
@override
|
|
String get loginTitle => 'Sign in';
|
|
|
|
@override
|
|
String get usernameLabel => 'Username';
|
|
|
|
@override
|
|
String get usernameRequired => 'Enter your username.';
|
|
|
|
@override
|
|
String get passwordLabel => 'Password';
|
|
|
|
@override
|
|
String get passwordRequired => 'Enter your password.';
|
|
|
|
@override
|
|
String get loginAction => 'Sign in';
|
|
|
|
@override
|
|
String get sessionExpiredError => 'Your session has expired. Sign in again.';
|
|
|
|
@override
|
|
String get forbiddenError =>
|
|
'You do not have permission to use this feature.';
|
|
|
|
@override
|
|
String get serverError => 'A server error occurred. Try again in a moment.';
|
|
|
|
@override
|
|
String get networkError =>
|
|
'Network error. Check your connection and try again.';
|
|
|
|
@override
|
|
String get unexpectedError => 'An unexpected error occurred.';
|
|
}
|