Skip to content

Commit

Permalink
feat: easy localizations
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed May 7, 2024
1 parent 46760c8 commit 9d812e7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion evently/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';

void main() {
runApp(const MyApp());
runApp(
EasyLocalization(
supportedLocales: const [
Locale('en', 'US'),
Locale('ru', 'RU'),
Locale('es'),
Locale('de'),
],
path: 'i18n',
fallbackLocale: const Locale('en', 'US'),
saveLocale: false,
child: const MyApp(),
),
);
}

class MyApp extends StatelessWidget {
Expand Down

0 comments on commit 9d812e7

Please sign in to comment.