Available variables in rules

VariableDescriptionExample
{basename}Full name of the file, including file extensionIf source directory is: ./source-directory

Given: ./source-directory/json-files/ui.json

Then {basename}: ui.json
{filename}Name of the file without the file extension.

This variable is usually used to change the extension of translated files.
If source directory is: ./source-directory

Given: ./source-directory/json-files/ui.json

Then {filename}: ui
{path}The directory path from the source directory onto the file.

This is the most useful variable to modify your directory structure.
If source directory is: ./source-directory

Given: ./source-directory/json-files/v1/public/ui.json

Then {path}: json-files/v1/public
{locale}The translation language code that is being processed.

This is most useful when your translation directories have different needs for target language directories.
en-US, fr, zh-CN etc...