internationalization 3.0.1+1 copy "internationalization: ^3.0.1+1" to clipboard
internationalization: ^3.0.1+1 copied to clipboard

outdated

A project to easily implement internationalization on flutter projects

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:internationalization/internationalization.dart';

import 'infra/res/internationalization.gen.dart';
import 'usage.dart';

void main() => runApp(InternationalizationExampleApp());

class InternationalizationExampleApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      supportedLocales: Intl.suportedLocales,
      localizationsDelegates: [
        InternationalizationDelegate(
          translationsPath: Intl.stringsPath,
          suportedLocales: Intl.suportedLocales,
          files: Intl.files,
        ),
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
      ],
      home: Usage(),
    );
  }
}
20
likes
0
points
215
downloads

Publisher

unverified uploader

Weekly Downloads

A project to easily implement internationalization on flutter projects

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_localizations, intl, path, yaml

More

Packages that depend on internationalization