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

Pushing new transifex resource on config update for existing file #69

Open
joekur opened this issue Feb 23, 2017 · 2 comments
Open

Pushing new transifex resource on config update for existing file #69

joekur opened this issue Feb 23, 2017 · 2 comments

Comments

@joekur
Copy link

joekur commented Feb 23, 2017

If you have an already existing translation file in your repo, and then you push a commit to add that to transifex by adding it in .tx/config, txgh will not push that resource to transifex because the github webhook does not have the translation file as part of the added/modified files.

Is this something that sounds worth supporting? The easiest way to do this would be to re-sync every resource. Otherwise you would have to diff the .tx/config against the last version of it to see which resources were actually added.

@camertron
Copy link

camertron commented Feb 23, 2017

Yeah, unfortunately that's a use case txgh doesn't support super well. All we'd really have to do is listen for changes to .tx/config in addition to files that match the file_filters. I think I filed an issue for that internally, but never got around to implementing it.

@camertron
Copy link

I did however write a couple of scripts for us internally to do this. I had originally wanted to create a txgh CLI client, but it was pretty low priority. This script uploads all resources for the master branch and this script validates your setup is correct. Obviously these are tailored for our needs and some work would need to be done to make them applicable to a wider user base, but maybe they'll work for you :)

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

No branches or pull requests

2 participants