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

Wrap MessageFunction source & locales args in an object, adding dir #38

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

eemeli
Copy link
Member

@eemeli eemeli commented Dec 18, 2023

PR #30 added dir, but left it out of MessageFunction arguments. This fixes that. The source and locales are also wrapped with it into a MessageFunctionContext object that"s now included as the function"s first argument.

This also makes it easier to add new fields to the context object later, should that prove necessary.

CC @aphillips

@eemeli eemeli requested review from dminor and ryzokuken December 18, 2023 13:46
@eemeli eemeli merged commit 1243189 into main Jan 8, 2024
@eemeli eemeli deleted the msg-func-context branch January 8, 2024 17:02
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