fix(mobile): memories translation (#8316)

This commit is contained in:
waclaw66 2024-03-31 08:59:11 +02:00 committed by GitHub
parent e2d5a8c0bb
commit 34cbb18ecd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 9 deletions

View File

@ -283,6 +283,10 @@
"map_settings_only_show_favorites": "Show Favorite Only", "map_settings_only_show_favorites": "Show Favorite Only",
"map_settings_theme_settings": "Map Theme", "map_settings_theme_settings": "Map Theme",
"map_zoom_to_see_photos": "Zoom out to see photos", "map_zoom_to_see_photos": "Zoom out to see photos",
"memories_all_caught_up": "All caught up",
"memories_check_back_tomorrow": "Check back tomorrow for more memories",
"memories_start_over": "Start Over",
"memories_swipe_to_close": "Swipe up to close",
"monthly_title_text_date_format": "MMMM y", "monthly_title_text_date_format": "MMMM y",
"motion_photos_page_title": "Motion Photos", "motion_photos_page_title": "Motion Photos",
"multiselect_grid_edit_date_time_err_read_only": "Cannot edit date of read only asset(s), skipping", "multiselect_grid_edit_date_time_err_read_only": "Cannot edit date of read only asset(s), skipping",
@ -482,4 +486,4 @@
"viewer_remove_from_stack": "Remove from Stack", "viewer_remove_from_stack": "Remove from Stack",
"viewer_stack_use_as_main_asset": "Use as Main Asset", "viewer_stack_use_as_main_asset": "Use as Main Asset",
"viewer_unstack": "Un-Stack" "viewer_unstack": "Un-Stack"
} }

View File

@ -1,3 +1,4 @@
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:immich_mobile/constants/immich_colors.dart'; import 'package:immich_mobile/constants/immich_colors.dart';
import 'package:immich_mobile/extensions/build_context_extensions.dart'; import 'package:immich_mobile/extensions/build_context_extensions.dart';
@ -55,27 +56,27 @@ class _MemoryEpilogueState extends State<MemoryEpilogue>
), ),
const SizedBox(height: 16.0), const SizedBox(height: 16.0),
Text( Text(
'All caught up', "memories_all_caught_up",
style: Theme.of(context).textTheme.headlineMedium?.copyWith( style: Theme.of(context).textTheme.headlineMedium?.copyWith(
color: Colors.white, color: Colors.white,
), ),
), ).tr(),
const SizedBox(height: 16.0), const SizedBox(height: 16.0),
Text( Text(
'Check back tomorrow for more memories', "memories_check_back_tomorrow",
style: Theme.of(context).textTheme.bodyMedium?.copyWith( style: Theme.of(context).textTheme.bodyMedium?.copyWith(
color: Colors.white, color: Colors.white,
), ),
), ).tr(),
const SizedBox(height: 16.0), const SizedBox(height: 16.0),
TextButton( TextButton(
onPressed: widget.onStartOver, onPressed: widget.onStartOver,
child: Text( child: Text(
'Start Over', "memories_start_over",
style: context.textTheme.displayMedium?.copyWith( style: context.textTheme.displayMedium?.copyWith(
color: immichDarkThemePrimaryColor, color: immichDarkThemePrimaryColor,
), ),
), ).tr(),
), ),
], ],
), ),
@ -106,11 +107,11 @@ class _MemoryEpilogueState extends State<MemoryEpilogue>
), ),
), ),
Text( Text(
'Swipe up to close', "memories_swipe_to_close",
style: Theme.of(context).textTheme.bodyMedium?.copyWith( style: Theme.of(context).textTheme.bodyMedium?.copyWith(
color: Colors.white, color: Colors.white,
), ),
), ).tr(),
], ],
), ),
), ),