diff --git a/assets/i18n/en-US.json b/assets/i18n/en-US.json index 8e2ee07..33941ab 100644 --- a/assets/i18n/en-US.json +++ b/assets/i18n/en-US.json @@ -37,5 +37,6 @@ "edit": "Edit", "delete": "Delete", "deletePublisher": "Delete Publisher {}", - "deletePublisherHint": "Are you sure to delete this publisher? This will also deleted all the post and collections under this publisher." + "deletePublisherHint": "Are you sure to delete this publisher? This will also deleted all the post and collections under this publisher.", + "somethingWentWrong": "Something went wrong..." } diff --git a/lib/widgets/alert.dart b/lib/widgets/alert.dart index 153883b..bfda3ea 100644 --- a/lib/widgets/alert.dart +++ b/lib/widgets/alert.dart @@ -1,8 +1,9 @@ +import 'package:easy_localization/easy_localization.dart'; import 'package:flutter_platform_alert/flutter_platform_alert.dart'; void showErrorAlert(dynamic err) async { FlutterPlatformAlert.showAlert( - windowTitle: 'Something went wrong...', + windowTitle: 'somethingWentWrong'.tr(), text: err.toString(), alertStyle: AlertButtonStyle.ok, iconStyle: IconStyle.error,