Skip to content

Releases: glebm/i18n-tasks

v0.9.6

01 Nov 18:35

Choose a tag to compare

This is a minor bugfix releases.

  • Fixes the ignore_lines PatternScanner feature. #206
  • Allows : to be a part of the key. #207
  • Fixes translation of plural HTML keys. #193

v0.9.5

06 Mar 10:38

Choose a tag to compare

  • Add a PatternMapper scanner for mapping bits of code to keys #191.
  • Add missing keys with nil value by passing --nil-value to add-missing. #170
  • Requiring i18n-tasks no longer overrides I18n.locale. #190.

v0.9.4

06 Feb 15:01

Choose a tag to compare

  • Improve reporting for reference keys throughout.

v0.9.3

04 Feb 06:32

Choose a tag to compare

  • Support i18n :symbol reference keys. #150
  • Fixes dynamic key matching issue with nested #{}. #180

v0.9.2

04 Feb 06:32

Choose a tag to compare

  • Fix ActiveSupport >= 4.0 but < 4.2 compatibility. #178
  • Locale file path rewriting now matches locales as directories and multiple instances of the locale in the path. #176 #177

v0.9.1

02 Nov 00:12

Choose a tag to compare

  • New method: I18n::Tasks.add_scanner(scanner_class_name, scanner_opts) to add a scanner to the default configuration.
  • New method: I18n::Tasks.add_commands(commands_module) to add commands to i18n-tasks.
  • Only match I18n or nil receivers in PatternScanner.

v0.9.0

28 Oct 07:49

Choose a tag to compare

This release adds support for multiple scanners and an AST scanner for .rb files.

New features

  • Support for multiple scanners. See an example.
  • AST scanner for .rb files.
  • default: argument support for add-missing -v. AST scanner only. #55
  • Recognize that only t calls can use relative keys, not I18n.t. AST scanner only. #106

Other changes

  • Strict mode enabled by default, can be configured via search.strict.
    New argument: --no-strict.
  • search.include renamed to search.only.

v0.9.0.rc2: AST Scanner

11 Aug 04:24

Choose a tag to compare

Pre-release
  • AST scanner for .rb files.
  • default: argument support for add-missing -v. AST scanner only. #55
  • Recognize that only t calls can use relative keys, not I18n.t. AST scanner only. #106
  • search.include renamed to search.only.

v0.8.7

07 Aug 18:32

Choose a tag to compare

  • New interpolation value for add-missing -v: %{key}. Stijn Mathysen #164
  • When adding keys from non-default locales, merge base locale first, then the others. #162

v0.9.0.rc1: Multiple Scanners

05 Aug 00:45

Choose a tag to compare

Pre-release
  • Multiple scanners support, enabled by a major refactoring of the internals. #163
    Description from the config:

    ## 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.
    ## An array of [scanner class name, scanner options]:
    # scanners:
    #   - - I18n::Tasks::Scanners::PatternWithScopeScanner
    #     - {}
  • Strict mode enabled by default, can be configured via search.strict.
    New argument: --no-strict.

    ## If `strict` is `false`, guess usages such as t("cats.#{cat}.name").
    ## The default is `true`.
    # strict: true

This version requires Ruby 2+ and ActiveSupport 4+.
Track the development in the 0.9-dev branch.