wearerequired / traduttore

🗼 A WordPress plugin to improve the I18N workflow for your own projects based on @GlotPress.
https://wearerequired.github.io/traduttore/
72 stars 15 forks source link

Repo name/URL to project matching is too greedy #187

Closed ocean90 closed 3 years ago

ocean90 commented 3 years ago

Issue Overview If you have a GlotPress project with the path foo/foo-bar and push something to a repo name foo, Traduttore will update foo/foo-bar with the content of foo. Since the text domain won't match it actually deletes all originals.

To Reproduce Steps to reproduce the behavior:

  1. Create a repo foo
  2. Create a repo foo-bar
  3. Set up a GlotPress project for foo-bar
  4. Push something to foo
  5. Notice that foo-bar has no strings anymore

Expected behavior The repo should not match partially another repo/project.