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

Serialize spells to JSON using Locale-aware context #69

Merged
merged 3 commits into from
May 10, 2024

Conversation

Carifio24
Copy link
Owner

@Carifio24 Carifio24 commented May 10, 2024

This PR modifies the spell codec to serialize spells to JSON using the application Context (which is Locale-aware). It's this Context object that's used for the JSON spell parsing, so we should use the same one both ways. Currently the US Locale is used, which causes homebrew spells to be not parse in the Portuguese version. This hasn't come up until now because the only time that we serialize spells to JSON is when saving homebrew spells, and that's a new feature that hasn't been released yet. Additionally, this PR also make a couple of other (unrelated) minor changes.

@Carifio24 Carifio24 added the bug Something isn't working label May 10, 2024
@Carifio24 Carifio24 merged commit 5806875 into master May 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant