feat(mobile): add missing translations (#8537)

* feat(mobile): add missing translations

* fix formatting
This commit is contained in:
Michel Heusschen
2024-04-05 16:45:37 +02:00
committed by GitHub
parent afd7815420
commit 7aaf48cb0c
12 changed files with 68 additions and 32 deletions

View File

@@ -73,20 +73,18 @@ class AlbumViewerAppbar extends HookConsumerWidget
barrierDismissible: false, // user must tap button!
builder: (BuildContext context) {
return AlertDialog(
title: const Text('Delete album'),
content: const Text(
'Are you sure you want to delete this album from your account?',
),
title: const Text('album_viewer_appbar_share_delete').tr(),
content: const Text('album_viewer_appbar_delete_confirm').tr(),
actions: <Widget>[
TextButton(
onPressed: () => context.pop('Cancel'),
child: Text(
'Cancel',
'action_common_cancel',
style: TextStyle(
color: context.primaryColor,
fontWeight: FontWeight.bold,
),
),
).tr(),
),
TextButton(
onPressed: () {
@@ -94,12 +92,12 @@ class AlbumViewerAppbar extends HookConsumerWidget
deleteAlbum();
},
child: Text(
'Confirm',
'action_common_confirm',
style: TextStyle(
fontWeight: FontWeight.bold,
color: !context.isDarkTheme ? Colors.red : Colors.red[300],
),
),
).tr(),
),
],
);