smart_translate_lints 1.0.2 copy "smart_translate_lints: ^1.0.2" to clipboard
smart_translate_lints: ^1.0.2 copied to clipboard

Smart Translate Lints is a custom linting plugin for Flutter that helps catch missing translation strings in your code.

Smart Translate Lints #

Pub Version Dart SDK

Introduction #

Smart Translate Lints is a custom linting plugin for Flutter that helps catch missing translation strings in your code. It ensures that all strings are localized using locale key variables, enhancing the accessibility and internationalization of your applications.

Installation #

To install Smart Translate Lints, add it as a dependency in your pubspec.yaml file:

dev_dependencies:
  custom_lint: ^latest_version
  smart_translate_lints: ^1.0.0

Then, run flutter pub get to fetch the package.

Configuration #

To use Smart Translate Lints, you need to include it in your analysis_options.yaml file:


analyzer:
  plugins:
    - custom_lint

custom_lint:
  rules:
    - smart_translate_lint_role: true # for enabled or false for disabled
    - smart_translate_lint_locale_keys_role: true # for enabled or false for disabled

This will enable the linting rules provided by Smart Translate Lints in your Flutter project.

Usage #

Once installed and configured, Smart Translate Lints will automatically check your code for missing translation strings. If a string is not localized using a locale key variable, the linter will raise a warning.

Conclusion #

Smart Translate Lints is an essential tool for maintaining high-quality, accessible code in multilingual Flutter applications. By catching and warning about missing translations, it helps ensure that your app can reach a global audience.

1
likes
140
pub points
0%
popularity

Publisher

verified publishersmart-host.com.tr

Smart Translate Lints is a custom linting plugin for Flutter that helps catch missing translation strings in your code.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

analyzer, analyzer_plugin, custom_lint_builder

More

Packages that depend on smart_translate_lints