diff --git a/lib/repository/import_export_repository.dart b/lib/repository/import_export_repository.dart index d698630f4..6436bfb10 100644 --- a/lib/repository/import_export_repository.dart +++ b/lib/repository/import_export_repository.dart @@ -29,6 +29,7 @@ class ImportExportRepository extends ChangeNotifier { builder: (context2) => FolderSelectDialog( account: account, fileShowTarget: "miria.json.unknown", + confirmationText: "このフォルダーからインポートする", ), ); if (result == null) return; @@ -116,6 +117,7 @@ class ImportExportRepository extends ChangeNotifier { builder: (context2) => FolderSelectDialog( account: account, fileShowTarget: "miria.json.unknown", + confirmationText: "このフォルダーに保存する", ), ); if (result == null) return; diff --git a/lib/view/settings_page/import_export_page/folder_select_dialog.dart b/lib/view/settings_page/import_export_page/folder_select_dialog.dart index c1e86cf20..ea6105fd3 100644 --- a/lib/view/settings_page/import_export_page/folder_select_dialog.dart +++ b/lib/view/settings_page/import_export_page/folder_select_dialog.dart @@ -15,11 +15,13 @@ class FolderResult { class FolderSelectDialog extends ConsumerStatefulWidget { final Account account; final String? fileShowTarget; + final String confirmationText; const FolderSelectDialog({ super.key, required this.account, required this.fileShowTarget, + required this.confirmationText, }); @override @@ -35,7 +37,7 @@ class FolderSelectDialogState extends ConsumerState { return AlertDialog( title: Column( children: [ - const Text("フォルダ選択"), + const Text("フォルダー選択"), Row( children: [ if (path.isNotEmpty) @@ -126,7 +128,7 @@ class FolderSelectDialogState extends ConsumerState { onPressed: () { Navigator.of(context).pop(FolderResult(path.lastOrNull)); }, - child: const Text("このフォルダーに保存する"), + child: Text(widget.confirmationText), ) ], );