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

Add wp_localization_parser crate to make parsing accessible from other crates #640

Merged
merged 1 commit into from
Mar 30, 2025

Conversation

oguzkocer
Copy link
Contributor

The parsing logic will be used in #575, so it needs to be accessible outside of the proc macro crate.

This PR only moves the existing code without any functional changes. The only minor change is that parse function now returns a Result just so we can avoid unwrapping it in a library crate. The error type that's used is pretty basic at the moment, but we might end up adding more information as we build on our tooling.

I also removed the wp_messages::bindings mod because the module separation is no longer useful.

@oguzkocer oguzkocer added this to the 0.2 milestone Mar 26, 2025
Base automatically changed from change-message-bundle-args-value-type-to-FluentValue to trunk March 26, 2025 23:38
@oguzkocer oguzkocer force-pushed the wp_localization_parser branch from 8637dab to 879a908 Compare March 27, 2025 13:48
@oguzkocer oguzkocer marked this pull request as ready for review March 27, 2025 15:34
@oguzkocer oguzkocer enabled auto-merge (squash) March 27, 2025 15:34
@oguzkocer oguzkocer requested a review from crazytonyli March 27, 2025 15:34
@oguzkocer oguzkocer merged commit 21f01a9 into trunk Mar 30, 2025
19 checks passed
@oguzkocer oguzkocer deleted the wp_localization_parser branch March 30, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants