l10nization_cli 0.0.1 copy "l10nization_cli: ^0.0.1" to clipboard
l10nization_cli: ^0.0.1 copied to clipboard

A Command-Line Interface to find unused l10n translations from an arb file.

example/lib/main.dart

import 'package:example/l10n/l10n.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(final BuildContext context) => const MaterialApp(
        localizationsDelegates: AppLocalizations.localizationsDelegates,
        supportedLocales: AppLocalizations.supportedLocales,
        home: _HomePage(),
      );
}

class _HomePage extends StatelessWidget {
  const _HomePage();

  @override
  Widget build(final BuildContext context) {
    final l10n = AppLocalizations.of(context);
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text(AppLocalizations.of(context).helloWorld),
            Text(AppLocalizations.of(context).helloWorld),
            Text(l10n.helloMoon),
            Text(Stuff().seeingTheWorldAgain),
          ],
        ),
      ),
    );
  }
}

class Stuff {
  String get seeingTheWorldAgain => 'Seeing the world again';
}
8
likes
0
points
143
downloads

Publisher

verified publisherlsaudon.fr

Weekly Downloads

A Command-Line Interface to find unused l10n translations from an arb file.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, args, cli_completion, file, glob, mason_logger, path, pub_updater, yaml

More

Packages that depend on l10nization_cli