Configure document name patterns
masterThe namePattern option in your files configuration determines how a file's name is represented in Accent. Available patterns:
file(default): Uses the filename without the extension. Example:Localizable.stringsbecomesLocalizable.fileWithSlugSuffix: Uses the filename without the extension and strips the language slug from the suffix. Example:Localizable.en.stringsbecomesLocalizable.parentDirectory: Uses the name of the directory containing the file. Useful when files are named only by language.fileWithParentDirectory: Uses the file path in addition to the filename. The%slug%placeholder in thetargetpath acts as the root for this path.
{
"files": [
{
"namePattern": "fileWithParentDirectory",
"source": "translations/en/**/*.json",
"target": "translations/%slug%/%document_path%.json"
}
]
}