Skip to content

Enhance get_translations() to optionally return full contents#7

Open
StasNemy wants to merge 2 commits intoflagist0:masterfrom
StasNemy:feat/in-get_translations-return-all-contents
Open

Enhance get_translations() to optionally return full contents#7
StasNemy wants to merge 2 commits intoflagist0:masterfrom
StasNemy:feat/in-get_translations-return-all-contents

Conversation

@StasNemy
Copy link

@StasNemy StasNemy commented May 29, 2025

Thanks for the great work on this codebase!

I added a small enhancement to the get_translations method to optionally return the full JSON response from the API via the return_contents parameter. This makes it easier to access additional metadata (like frequencies, tags, source info, etc.) when needed, while preserving the original behavior of yielding just the terms.

Hope this is useful — let me know if you'd prefer it to return a tuple or handle this differently!

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

Successfully merging this pull request may close these issues.

1 participant