Skip to content

Create error versions of T #46

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

Merged
merged 1 commit into from
Apr 2, 2025
Merged

Create error versions of T #46

merged 1 commit into from
Apr 2, 2025

Conversation

robyoder
Copy link
Collaborator

In B5X, we had an issue where there were two options for Locale providers and one file used the wrong one, leading to a perplexing issue with partial translations. If the T function that initialized the empty context had errored instead of falling back to something halfway useful, the problem would have been a lot clearer.

Here I provide functions to make that kind of setup easy so that consumers don't need to maintain them.

Resolves #45

In B5X, we had an issue where there were two options for Locale providers and one file used the wrong one, leading to a perplexing issue with partial translations. If the T function that initialized the empty context had errored instead of falling back to something halfway useful, the problem would have been a lot clearer.

Here I provide functions to make that kind of setup easy so that consumers don't need to maintain them.
@robyoder robyoder merged commit e472f53 into master Apr 2, 2025
1 check passed
@robyoder robyoder deleted the ry/errors branch April 2, 2025 15:27
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.

Create versions of makeT and makeBasicT that only error
2 participants