loc_checker 1.0.0 copy "loc_checker: ^1.0.0" to clipboard
loc_checker: ^1.0.0 copied to clipboard

A tool to detect non-localized strings in Flutter projects and generate ARB files with camelCase keys.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate loc_checker

Use it

The package has the following executables:

$ loc_checker

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add loc_checker

With Flutter:

 $ flutter pub add loc_checker

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  loc_checker: ^1.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:loc_checker/ast_visitor.dart';
import 'package:loc_checker/checker.dart';
import 'package:loc_checker/config.dart';
import 'package:loc_checker/generator/arb_generator.dart';
import 'package:loc_checker/helpers/localized_keys.dart';
import 'package:loc_checker/helpers/string_filters.dart';
import 'package:loc_checker/models/models.dart';
7
likes
130
points
37
downloads

Publisher

unverified uploader

Weekly Downloads

A tool to detect non-localized strings in Flutter projects and generate ARB files with camelCase keys.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

analyzer, args, file, glob, path

More

Packages that depend on loc_checker