Skip to content

Releases: glebm/i18n-tasks

v0.9.13

29 Mar 11:08
Compare
Choose a tag to compare

This release replaces a GPL-licensed dependency, Term::ANSIColor, with the MIT-licensed Rainbow gem.

Thanks to @ypresto for discovering and fixing the issue.

v0.9.12

29 Mar 11:03
Compare
Choose a tag to compare

This is a minor bugfix release.

  • Do not warn about "adding children to leaf" for keys found in source. #228
  • Fix an issue with nested keys with the scope argument in views. #224

v0.9.11

29 Mar 11:03
Compare
Choose a tag to compare

This is a minor bugfix release.

  • Fixes another issue with the scope argument in views. #224

v0.9.10

31 Jan 19:32
Compare
Choose a tag to compare
  • Fixes parenthesized t() calls with a scope argument in views.
    #224
  • Fixes the i18n-tasks irb task.
    #222

v0.9.9

19 Jan 08:42
Compare
Choose a tag to compare

This release fixes an issue with dynamic scope arguments in views.

This affects calls like the following:

<%= t('key', scope: dynamic) %>

Previously, i18n-tasks would incorrectly parse it as key. Now, such calls are ignored.

#213

v0.9.8: mv, rm, and tree-mv

27 Dec 13:40
Compare
Choose a tag to compare

This release adds the mv command for renaming/moving the keys.
#116

Move / rename / merge keys

i18n-tasks mv <pattern> <target> is a versatile task to move or delete keys matching the given pattern.

All nodes (leafs or subtrees) matching <pattern> are merged together and moved to <target>.

Rename a node (leaf or subtree):

$ i18n-tasks mv user account

Move a node:

$ i18n-tasks mv user_alerts user.alerts

Move the children one level up:

$ i18n-tasks mv 'alerts.{:}' '\1'

Merge-move multiple nodes:

$ i18n-tasks mv '{user,profile}' account

Merge (non-leaf) nodes into parent:

$ i18n-tasks mv '{pages}.{a,b}' '\1'

Delete keys

Delete the keys by using the rm task:

$ i18n-tasks rm 'user.{old_profile,old_title}' another_key

v0.9.7

27 Dec 03:51
Compare
Choose a tag to compare

This is a minor bugfix release.

  • Fixes add-missing command ignoring its locales argument.
    #205
  • Always require PatternMapper so that it doesn't need requiring in the config.
    #204
  • If internal_locale is set to a locale that's not available, reset it to en and print a warning.
    #202

v0.9.6

01 Nov 18:35
Compare
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
Compare
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
Compare
Choose a tag to compare
  • Improve reporting for reference keys throughout.