Skip to content

Commit

Permalink
Merge pull request #263 from yumemi-inc/feature/typedef_l10n
Browse files Browse the repository at this point in the history
refactor: L10nをtypedefでexport
  • Loading branch information
K9i-0 committed Jun 18, 2024
2 parents f330243 + d7e8e1d commit 54bd731
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions apps/app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:cores_core/ui.dart';
import 'package:cores_data/theme_mode.dart';
import 'package:cores_designsystem/themes.dart';
import 'package:cores_init/provider.dart';
import 'package:features_setting/l10n.dart' as features_setting;
import 'package:features_setting/l10n.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app/app_initializer.dart';
import 'package:flutter_app/gen/l10n/l10n.dart';
Expand Down Expand Up @@ -60,11 +60,11 @@ class MainApp extends ConsumerWidget {
return MaterialApp.router(
localizationsDelegates: const [
...L10n.localizationsDelegates,
...features_setting.L10n.localizationsDelegates,
...SettingL10n.localizationsDelegates,
],
supportedLocales: const [
...L10n.supportedLocales,
...features_setting.L10n.supportedLocales,
...SettingL10n.supportedLocales,
],
scaffoldMessengerKey: SnackBarManager.rootScaffoldMessengerKey,
routerConfig: ref.watch(routerProvider),
Expand Down
4 changes: 3 additions & 1 deletion packages/features/setting/lib/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 54bd731

Please sign in to comment.