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

DEV: Use backend plugin api instead of frontend apis to override translation values #210

Merged
merged 5 commits into from
Feb 14, 2025

Conversation

nattsw
Copy link
Contributor

@nattsw nattsw commented Feb 13, 2025

In #205, we returned translated values using existing JS apis. While this was convenient, it does not allow us to modify crawler views such as ...

https://github.com/discourse/discourse/blob/main/app/views/topics/show.html.erb

... when we want to serve translated pages.

This PR makes use of discourse/discourse#31261 to override the values.

@nattsw
Copy link
Contributor Author

nattsw commented Feb 13, 2025

Tests will fail until discourse/discourse#31261 is merged.

@nattsw
Copy link
Contributor Author

nattsw commented Feb 14, 2025

Will add discourse-compat

@@ -1,4 +1,4 @@
< 3.5.0.beta1-dev: f7d6ca6b32c0cff27422dd9f7583f41b203c0c57
< 3.5.0.beta1-dev: 65d7ea2dbc9e7bf276e5ac3f9e23c2111e64e278
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nattsw nattsw merged commit 4a2faf9 into main Feb 14, 2025
5 checks passed
@nattsw nattsw deleted the change-update-method branch February 14, 2025 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants