-
-
Notifications
You must be signed in to change notification settings - Fork 40
web-next: View and request article translations #280
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
dahlia
merged 31 commits into
hackers-pub:main
from
dahlia:web-next/article-translations
May 2, 2026
Merged
Changes from 14 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
f164cde
web-next: Add /[lang] article route to display translations
dahlia 9e64a35
web-next: Emit canonical/og:url/og:locale:alternate on article pages
dahlia 63d9152
Include in-progress translations on Article.contents includeBeingTran…
dahlia 7d2b65a
Add requestArticleTranslation GraphQL mutation
dahlia 8f5bb8d
web-next: Plumb includeBeingTranslated through article fragments
dahlia 32c5f78
web-next: Render translating placeholder on /lang for in-progress rows
dahlia 6256f5b
web-next: Auto-request LLM translation on /lang when content missing
dahlia 47bc22a
web-next: Poll for translation completion every 30 seconds
dahlia 121669b
web-next: List viewer's preferred locales in article language switcher
dahlia 89786b4
web-next: Translate "Translation request failed" toast
dahlia c8df66f
web-next: Switch /lang translation polling to fetchQuery
dahlia 66f0025
web-next: Add spinner and explanatory copy to translating placeholder
dahlia c2d2772
web-next: Make /lang translation polling more robust
dahlia 3edafbe
web-next: Dedup viewer locales in the article switcher by language su…
dahlia c431ab4
Reject unsupported target locales in requestArticleTranslation
dahlia 696ced4
web-next: Re-fire /lang translation request when placeholder vanishes
dahlia 38a5b07
web-next: Include in-progress translations in article allContents
dahlia 9e8b3b3
web-next: Show a retry UI when a translation request fails
dahlia ee4f1fb
web-next: Stabilize article content picker, h1, and meta encoding
dahlia bea46b8
web-next: Harden /lang stale-translation handling for guests and bad …
dahlia e560bcc
Reject same-family target locales in requestArticleTranslation
dahlia 6fd01e8
web-next: Detect quick translator failures in /lang mutation onCompleted
dahlia ad6b6c7
web-next: Filter switcher's extra locale links through normalizeLocale
dahlia d48abf6
web-next: Don't cancel an in-flight /lang poll when the next tick fires
dahlia ad497b7
Allow cross-script SAME_LANGUAGE targets in requestArticleTranslation
dahlia 6d3364d
web-next: Treat cross-script locales as distinct in /lang and switcher
dahlia df4978f
web-next: Skip in-progress translations in og:locale:alternate
dahlia 6080de3
web-next: Stop auto-retrying /lang translation after a failure
dahlia 24ba16b
web-next: Fall back to /lang URL for switcher links missing a server URL
dahlia 8b5ff17
Skip enqueueing in requestArticleTranslation when a completed transla…
dahlia 61793d7
web-next: Reset /lang local state on route param navigation
dahlia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.