diff --git a/assets/i18n/en.json b/assets/i18n/en.json index e4228e19..cae87ffb 100644 --- a/assets/i18n/en.json +++ b/assets/i18n/en.json @@ -31,7 +31,8 @@ }, "appSelectorCard": { "widgetTitle": "Select application", - "widgetSubtitle": "No application selected." + "widgetSubtitle": "No application selected.", + "noAppsLabel": "No apps found." }, "patchSelectorCard": { "widgetTitle": "Select patches", diff --git a/lib/ui/views/app_selector/app_selector_view.dart b/lib/ui/views/app_selector/app_selector_view.dart index e31ad7c8..b50e72cf 100644 --- a/lib/ui/views/app_selector/app_selector_view.dart +++ b/lib/ui/views/app_selector/app_selector_view.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter_i18n/flutter_i18n.dart'; import 'package:installed_apps/app_info.dart'; import 'package:installed_apps/installed_apps.dart'; import 'package:revanced_manager/ui/widgets/installed_app_item.dart'; @@ -66,8 +67,8 @@ class _AppSelectorViewState extends State { ), if (query.isNotEmpty) apps.isEmpty - ? const Center( - child: Text('No apps found'), + ? Center( + child: I18nText('appSelectorCard.noAppsLabel'), ) : Expanded( child: ListView.builder(