loc_checker 2.0.2
loc_checker: ^2.0.2 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_checkerUse 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_checkerWith Flutter:
$ flutter pub add loc_checkerThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
loc_checker: ^2.0.2Alternatively, 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/analytics/coverage_analytics.dart';
import 'package:loc_checker/ast_visitor.dart';
import 'package:loc_checker/automation/code_converter.dart';
import 'package:loc_checker/automation/code_generator.dart';
import 'package:loc_checker/automation/translation_service.dart';
import 'package:loc_checker/checker.dart';
import 'package:loc_checker/config.dart';
import 'package:loc_checker/enhanced_checker.dart';
import 'package:loc_checker/enhanced_patterns/widget_pattern_detector.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';