Skip to content

Commit b34b133

Browse files
committed
fix(app_configuration): use localized ad type names in feed ad settings form
- Add import for AdType localization extension - Replace ad type name with localized version in UI
1 parent ff9ee46 commit b34b133

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/app_configuration/widgets/feed_ad_settings_form.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
33
import 'package:flutter_news_app_web_dashboard_full_source_code/app_configuration/widgets/app_config_form_fields.dart';
44
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/app_localizations.dart';
55
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart';
6+
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/ad_type_l10n.dart';
67
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/app_user_role_l10n.dart';
78
import 'package:ui_kit/ui_kit.dart';
89

@@ -174,7 +175,7 @@ class _FeedAdSettingsFormState extends State<FeedAdSettingsForm>
174175
.map(
175176
(type) => ButtonSegment<AdType>(
176177
value: type,
177-
label: Text(type.name),
178+
label: Text(type.l10n(context)),
178179
),
179180
)
180181
.toList(),

0 commit comments

Comments
 (0)