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

feat(TranslateDefaultParser): make interpolation functions protected to allow ineritance #1527

Closed
wants to merge 1 commit into from

Conversation

de-don
Copy link

@de-don de-don commented Feb 20, 2025

I have changed private to protected to have an ability to extend this class and override just one method. In my case I need to override logic in interpolateString method to use '' instead of substring if value is not defined.

@de-don de-don changed the title feat: make interpolation functions protected to allow ineritance feat(TranslateDefaultParser): make interpolation functions protected to allow ineritance Feb 20, 2025
@CodeAndWeb
Copy link
Member

4562aef

A more in-depth change for this. You now get even more flexibility :-)

@CodeAndWeb CodeAndWeb closed this Feb 21, 2025
@de-don
Copy link
Author

de-don commented Feb 21, 2025

@CodeAndWeb Check please this comment 4562aef#r152860552

I think there is a small bug, and I don't see any test about that logic :)

@CodeAndWeb
Copy link
Member

772cbd0

Fixed this. And also the not yet handled null.

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.

2 participants