Manage translation and localization with static analysis, for Ruby i18n
This release replaces a GPL-licensed dependency, Term::ANSIColor
, with the MIT-licensed Rainbow gem.
Thanks to @ypresto for discovering and fixing the issue.
This is a minor bugfix release.
scope
argument in views. #224
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.
This release adds the mv
command for renaming/moving the keys.
#116
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 the keys by using the rm
task:
$ i18n-tasks rm 'user.{old_profile,old_title}' another_key