Repository navigation
🌐(frontend) add Crowdin translator context - #2785
Merged
Merged
Conversation
3 tasks done
Contributor
|
Size Change: +5.09 kB (+0.12%) Total Size: 4.08 MB 📦 View Changed
|
Ovgodd
reviewed
Oct 6, 2026
Collaborator
There was a problem hiding this comment.
Suggested change
| ? t(''Open document', { |
Open is used both as the comments filter ("open threads") and as the duplicate toast button ("open the document"). A single string has only one translation, so French shows "Ouverts" on the button. Could the toast use Open document instead, so it can be translated "Ouvrir" on its own?
Comment on lines
60
to
63
| @@ -62,6 +62,8 @@ export const useImport = ({ onDragOver, onImportSuccess }: UseImportProps) => { | |||
| ? `The document "{{documentName}}" import has failed (only {{allowedExtensions}} files are allowed)` | |||
| : `The document "{{documentName}}" import has failed`, | |||
Collaborator
There was a problem hiding this comment.
Suggested change
| : `The document "{{documentName}}" import has failed`, | |
| toast( | |
| allowedExtensions | |
| ? t( | |
| 'The document "{{documentName}}" import has failed (only {{allowedExtensions}} files are allowed)', | |
| { | |
| description: | |
| 'Toast shown when a file to import has an unsupported type', | |
| documentName: fileName, | |
| allowedExtensions, | |
| }, | |
| ) | |
| : t('The document "{{documentName}}" import has failed', { | |
| description: 'Toast shown when importing a file as a document failed', | |
| documentName: fileName, | |
| }), | |
| VariantType.ERROR, | |
| ); |
spotted this
AntoLC
force-pushed
the
chore/2438-crowdin-open-context
branch
from
October 6, 2026 13:09
bd16e24 to
c72b0b1
Compare
AntoLC
force-pushed
the
chore/2438-crowdin-open-context
branch
from
October 16, 2026 12:51
c72b0b1 to
facd44a
Compare
We add context for the translator Crowdin, to do so, we added a context description on the t function. Closes #2438
AntoLC
force-pushed
the
chore/2438-crowdin-open-context
branch
from
October 16, 2026 12:57
facd44a to
7123186
Compare
Merged
lunika
added a commit
that referenced
this pull request
Oct 21, 2026
Added - ✨(docspec) handle DocSpec 4xx/5xx import errors distinctly #2552 - 🌐(frontend) add Crowdin translator context #2785 - ✨(frontend) open the emoji picker when adding a document emoji #2777 Changed - 💄(frontend) limit heading choices to levels 1–3 - ♻️(frontend) replace outdated AGPL mentions of BlockNote XL packages #2775 - 💄(frontend) update upload loader and error ui #2778 - ⬆️(yhub) upgrade @y/hub to 0.10.1 #2853 - ♿️(frontend) allow opening the home button in a new tab #2839 - 💄(frontend) use 12px for error page home links #2809 Fixed - 🐛(frontend) don't add a reader's duplicate to the doc tree #2860 - 🐛(frontend) fix confirmation modal for duplicating sub-docs #2860 - 🐛(frontend) wrap long unbroken document titles #2852 - 🐛(frontend) wrap long text in the print export #2813 - 🔒️(backend) bind comment thread to the path document on creation #2838 - 🐛(frontend) fix search highlight hidden inside code blocks #2681 - 🔒️(backend) require present document access for thread and comment writes #2840 - 🐛(backend) enforce resource server action restrictions on the external API #2745 - 🐛(backend) mark only the top duplicate as a copy, after its title #2855 - 🐛(yhub) measure migration durations with a monotonic clock #2814 - 🐛(backend) send the mention email when the cache is unreachable #2803 - 🐛(backend) give media-auth its own throttle scope - 💄(frontend) remove the vertical line next to nested blocks #2825
lunika
added a commit
that referenced
this pull request
Oct 21, 2026
Added - ✨(docspec) handle DocSpec 4xx/5xx import errors distinctly #2552 - 🌐(frontend) add Crowdin translator context #2785 - ✨(frontend) open the emoji picker when adding a document emoji #2777 Changed - 💄(frontend) limit heading choices to levels 1–3 - ♻️(frontend) replace outdated AGPL mentions of BlockNote XL packages #2775 - 💄(frontend) update upload loader and error ui #2778 - ⬆️(yhub) upgrade @y/hub to 0.10.1 #2853 - ♿️(frontend) allow opening the home button in a new tab #2839 - 💄(frontend) use 12px for error page home links #2809 Fixed - 🐛(frontend) don't add a reader's duplicate to the doc tree #2860 - 🐛(frontend) fix confirmation modal for duplicating sub-docs #2860 - 🐛(frontend) wrap long unbroken document titles #2852 - 🐛(frontend) wrap long text in the print export #2813 - 🔒️(backend) bind comment thread to the path document on creation #2838 - 🐛(frontend) fix search highlight hidden inside code blocks #2681 - 🔒️(backend) require present document access for thread and comment writes #2840 - 🐛(backend) enforce resource server action restrictions on the external API #2745 - 🐛(backend) mark only the top duplicate as a copy, after its title #2855 - 🐛(yhub) measure migration durations with a monotonic clock #2814 - 🐛(backend) send the mention email when the cache is unreachable #2803 - 🐛(backend) give media-auth its own throttle scope - 💄(frontend) remove the vertical line next to nested blocks #2825
lunika
added a commit
that referenced
this pull request
Oct 21, 2026
Added - ✨(docspec) handle DocSpec 4xx/5xx import errors distinctly #2552 - 🌐(frontend) add Crowdin translator context #2785 - ✨(frontend) open the emoji picker when adding a document emoji #2777 Changed - 💄(frontend) limit heading choices to levels 1–3 - ♻️(frontend) replace outdated AGPL mentions of BlockNote XL packages #2775 - 💄(frontend) update upload loader and error ui #2778 - ⬆️(yhub) upgrade @y/hub to 0.10.1 #2853 - ♿️(frontend) allow opening the home button in a new tab #2839 - 💄(frontend) use 12px for error page home links #2809 Fixed - 🐛(frontend) don't add a reader's duplicate to the doc tree #2860 - 🐛(frontend) fix confirmation modal for duplicating sub-docs #2860 - 🐛(frontend) wrap long unbroken document titles #2852 - 🐛(frontend) wrap long text in the print export #2813 - 🔒️(backend) bind comment thread to the path document on creation #2838 - 🐛(frontend) fix search highlight hidden inside code blocks #2681 - 🔒️(backend) require present document access for thread and comment writes #2840 - 🐛(backend) enforce resource server action restrictions on the external API #2745 - 🐛(backend) mark only the top duplicate as a copy, after its title #2855 - 🐛(yhub) measure migration durations with a monotonic clock #2814 - 🐛(backend) send the mention email when the cache is unreachable #2803 - 🐛(backend) give media-auth its own throttle scope - 💄(frontend) remove the vertical line next to nested blocks #2825
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose
Translators on Crowdin only see the source string, so short or ambiguous strings ("Open", "Share", "Last update:"...) get translated wrongly. Giving each string a short description tells them where it appears.
Proposal
descriptionto everyt()call ofapps/impressthat had none (565 calls, 125 files)tparameter of two helpers asTFunctionso it accepts the optionsFixes #2438