freenowtech / freenowtech/phrase-java-client

Branch not used when checking out locale

Aperta
#35 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
7
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi there, hope this project is still maintained?

I noticed I always get a 404 exception when trying to download a branch of any project, e.g.
```
PhraseAppSyncTask task =
new PhraseAppSyncTask(tok, id, Collections.singletonList("my-branch-name"), "https://api.phraseapp.com");
task.run();
```
Reason is the `branch` parameter is never used:
https://github.com/freenowtech/phrase-java-client/blob/master/src/main/java/com/freenow/apis/phrase/api/locale/PhraseLocaleAPI.java#L92

Fix attached

Best regards
Tom

[use-branch-params.patch](https://github.com/user-attachments/files/18749528/use-branch-params.patch)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.