templates/config/i18n-tasks.yml in i18n-tasks-1.0.8 vs templates/config/i18n-tasks.yml in i18n-tasks-1.0.9

- old
+ new

@@ -83,9 +83,18 @@ # only: ["*.rb", "*.html.slim"] ## If `strict` is `false`, guess usages such as t("categories.#{category}.title"). The default is `true`. # strict: true + ## Allows adding ast_matchers for finding translations using the AST-scanners + ## The available matchers are: + ## - RailsModelMatcher + ## Matches ActiveRecord translations like + ## User.human_attribute_name(:email) and User.model_name.human + ## + ## To implement your own, please see `I18n::Tasks::Scanners::AstMatchers::BaseMatcher`. + <%# I18n::Tasks.add_ast_matcher('I18n::Tasks::Scanners::AstMatchers::RailsModelMatcher') %> + ## Multiple scanners can be used. Their results are merged. ## The options specified above are passed down to each scanner. Per-scanner options can be specified as well. ## See this example of a custom scanner: https://github.com/glebm/i18n-tasks/wiki/A-custom-scanner-example ## Translation Services