Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@aslamht
Copy link
Contributor

@aslamht aslamht commented May 7, 2025

Summary

This PR adds error handling for (malformed) URLs in the google_translate function.

Fixes

Fixes #16

Notes

This PR applies the fix for malformed URL placeholders to the main google_translate() function.

Other variants of google_translate still need this update, but I currently don't have time to apply it across all of them. I recommend tracking this as a follow-up task.

@Tomeriko96 Tomeriko96 self-requested a review May 7, 2025 12:22
Copy link
Owner

@Tomeriko96 Tomeriko96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Please fix the errors in the automated checks
  • the helperfunctions directory should not be used for this url_helpers.R --> should go to the R/ directory instead

@Tomeriko96
Copy link
Owner

Hi @aslamht

Thank you for your PR. Please fix the issues and look into the code review comments for me to merge.

Also provide example cases with and without url links in the text.

@aslamht aslamht requested a review from Tomeriko96 May 8, 2025 08:32
Copy link
Owner

@Tomeriko96 Tomeriko96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@Tomeriko96 Tomeriko96 merged commit bea89c8 into Tomeriko96:main May 8, 2025
4 checks passed
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.

Translating lines with URL gives error

2 participants