From debc701b5c817e3e5518373f0a5d4faf0dfc605a Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Sun, 7 Aug 2022 23:40:48 +0100 Subject: [PATCH] fix: i18n minor add --- assets/i18n/en.json | 3 ++- lib/ui/views/app_selector/app_selector_view.dart | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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(