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
copied to clipboard

Use it

The package has the following executables:

$ loc_checker
copied to clipboard

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add loc_checker
copied to clipboard

With Flutter:

 $ flutter pub add loc_checker
copied to clipboard

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
copied to clipboard

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';
copied to clipboard
5
likes
130
points
130
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.16 - 2025.03.31

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