Releases: glebm/i18n-tasks
Releases · glebm/i18n-tasks
v0.9.13
v0.9.12
v0.9.11
v0.9.10
v0.9.9
v0.9.8: mv, rm, and tree-mv
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