I18n Tasks Versions Save

Manage translation and localization with static analysis, for Ruby i18n

v0.9.13

7 years ago

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

7 years ago

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

7 years ago

This is a minor bugfix release.

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

v0.9.10

7 years ago
  • Fixes parenthesized t() calls with a scope argument in views. #224
  • Fixes the i18n-tasks irb task. #222

v0.9.9

7 years ago

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

7 years ago

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

7 years ago

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

7 years ago

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

8 years ago
  • 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

8 years ago
  • Improve reporting for reference keys throughout.