Add dot-in-slug-directory example in cli

This commit is contained in:
Simon Prévost 2024-01-30 21:15:15 -05:00
parent 78cd29be2f
commit 656dc7459c
4 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1 @@
"key" = "value";

View File

@ -0,0 +1 @@
"key" = "valeur";

View File

@ -0,0 +1,10 @@
{
"files": [
{
"namePattern": "file",
"format": "strings",
"source": "Project/Resources/en.lproj/Localizable.strings",
"target": "Project/Resources/%slug%.lproj/%document_path%.strings"
}
]
}

View File

@ -180,7 +180,7 @@ export default class Sync extends Command {
flags
);
if (operation.addTranslations && !operation.peek) {
if (!operation.peek) {
formatter.logAddTranslations(operation.file, operation.documentPath);
}