Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli path resolve bug? #383

Closed
molind opened this issue Oct 12, 2023 · 4 comments
Closed

cli path resolve bug? #383

molind opened this issue Oct 12, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@molind
Copy link

molind commented Oct 12, 2023

{
    "apiUrl": "...",
    "apiKey":"...",
    "files": [
      {
        "format": "strings",
        "source": "Resources/Languages/en.lproj/Localizable.strings",
        "target": "Resources/Languages/%slug%.lproj/%document_path%.strings"
      }
    ]
  }

When I try to sync that file it writes to Resources/Languages/en.lproj/en.lproj.strings looks like it overwrites somewhere document_path with value from slug.

@simonprev
Copy link
Member

I think we don’t support "dots" in the folder name like en.lproj

@simonprev simonprev added the enhancement New feature or request label Oct 17, 2023
@molind
Copy link
Author

molind commented Oct 17, 2023

Is there a way to use it with iOS project? Escape dots somehow?

@molind
Copy link
Author

molind commented Dec 13, 2023

Any news on this? It's part of readme for cli. It says that it's supported and should work, but it doesn't. :) Sounds like a bug for me.

      "namePattern": "file",
      "format": "strings",
      "source": "Resources/Languages/en.lproj/Localisable.strings",
      "target": "Resources/Languages/%slug%.lproj/%document_path%.strings"

checked on accent-cli/0.14.2 today.

upd. First time I synced and it created en.lproj.strings. I deleted it on server and synced again. After second sync no new files was created on server.

@simonprev
Copy link
Member

I just added a working example for this exact config in the cli folder. I tested it locally and everything synced (with a small missing log error that I also fixed in master)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants