Skip to content

Instantly share code, notes, and snippets.

@ProGM
Last active April 12, 2016 20:16
Show Gist options
  • Save ProGM/c5261d85f6cc6dad07bf to your computer and use it in GitHub Desktop.
Save ProGM/c5261d85f6cc6dad07bf to your computer and use it in GitHub Desktop.
A set of i18n-tasks snippets.
# Rename games.filters.* to games_sections.*
i18n-tasks data -f yaml | i18n-tasks tree-filter games.filters.* | i18n-tasks tree-rename-key *.games games_sections | i18n-tasks data-merge
# Remove games.filters.*
i18n-tasks data -f yaml | i18n-tasks tree-filter games.filters.* | i18n-tasks data-remove
# Adds a new tree
echo 'en.my.new.tree' | i18n-tasks tree-convert -f keys -t yaml | i18n-tasks tree-set-value Hello | i18n-tasks data-merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment