l10n_lint 0.2.0 copy "l10n_lint: ^0.2.0" to clipboard
l10n_lint: ^0.2.0 copied to clipboard

flutter l10n lint check if localization is initialized correctly and find string literal

l10n_lint #

The l10n_lint package provides linting rules for Flutter localization. It helps you check if localization is initialized correctly and find string literals that should be localized.

Features #

  • Cli init, sort and get unused value
  • Linting rules to ensure correct initialization of localization.
  • Detection of string literals that should be localized.

Getting started #

To start using the l10n_lint package, make sure you have the following prerequisites: Flutter SDK is installed on your machine.

To install the l10n_lint cli and , run the following command:

dart pub global activate l10n_lint

use:

l10n init || l10n sort || l10n unused

To add l10n_lint to your Flutter project, follow these steps:

  1. Open your project's pubspec.yaml file.
  2. Add l10n_lint as a dev dependency:
dev_dependencies:
  flutter_lints: ^3.0.0
  custom_lint:
  l10n_lint:
  1. In analysis_options.yaml add
include: package:flutter_lints/flutter.yaml

analyzer:
  plugins: 
    - custom_lint
2
likes
0
pub points
18%
popularity

Publisher

unverified uploader

flutter l10n lint check if localization is initialized correctly and find string literal

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

analyzer, args, custom_lint_builder, file, glob, meta, path, pubspec_parse, yaml

More

Packages that depend on l10n_lint