Skip to content

Commit 9f9be2d

Browse files
committed
feat(app_configuration): localize ad platform type names
- Import AdPlatformTypeL10n extension - Replace platform name with localized version in AdPlatformConfigForm
1 parent eda2124 commit 9f9be2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/app_configuration/widgets/ad_platform_config_form.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:flutter_news_app_web_dashboard_full_source_code/app_configuratio
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';
66
import 'package:flutter_news_app_web_dashboard_full_source_code/router/routes.dart';
7+
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/ad_platform_type_l10n.dart';
78
import 'package:go_router/go_router.dart';
89
import 'package:ui_kit/ui_kit.dart';
910

@@ -251,7 +252,7 @@ class _AdPlatformConfigFormState extends State<AdPlatformConfigForm> {
251252
.map(
252253
(platform) => ButtonSegment<AdPlatformType>(
253254
value: platform,
254-
label: Text(platform.name),
255+
label: Text(platform.l10n(context)),
255256
),
256257
)
257258
.toList(),

0 commit comments

Comments
 (0)