slang-i18n / slang

Type-safe i18n for Dart and Flutter
https://pub.dev/packages/slang
MIT License
459 stars 39 forks source link

LocaleSettings not found #166

Closed yamadade closed 11 months ago

yamadade commented 11 months ago
void main() {
  WidgetsFlutterBinding.ensureInitialized(); // add this
  LocaleSettings.useDeviceLocale(); // and this
  runApp(MyApp());
}

The readme contains an explanation like this, but I can't find LocaleSettings.useDeviceLocale();. What does this mean?

Tienisto commented 11 months ago

Hello, LocaleSettings is a generated class after you run dart run slang

yamadade commented 11 months ago

I see! That's how it is. Thank you for letting me know.