-
Notifications
You must be signed in to change notification settings - Fork 265
Some more Command Line usage examples
Gleb Mazovetskiy edited this page Aug 3, 2018
·
2 revisions
Running this command:
echo 'en.my.new.tree' | i18n-tasks tree-convert -f keys -t yaml | i18n-tasks tree-set-value Hello | i18n-tasks data-merge
This will add this tree to your yaml file:
en:
my:
new:
tree: Hello
Move all elements from tree articles.filters.*
to articles.filter_data.*
i18n-tasks mv articles.filters articles.filter_data
Decomposed:
i18n-tasks data -f yaml | i18n-tasks tree-mv -a articles.filters articles.filter_data | i18n-tasks data-merge
Input:
articles:
filters:
key1: Key1
key2: Key2
key3:
key4: key4
Output:
articles:
filter_data:
key1: Key1
key2: Key2
key3:
key4: key4