Skip to content

[pull] main from tldraw:main#431

Merged
pull[bot] merged 2 commits intocode:mainfrom
tldraw:main
Mar 5, 2026
Merged

[pull] main from tldraw:main#431
pull[bot] merged 2 commits intocode:mainfrom
tldraw:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Mar 5, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

followup to #8011
tiny nit feedback from @MitjaBezensek 

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [x] `other`

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk: adds a `console.warn` when `useTranslation` cannot find
translation messages, which may increase log noise but does not change
translation lookup behavior.
> 
> **Overview**
> `useTranslation` now emits a `console.warn` when no translation
messages are present and it falls back to `DEFAULT_TRANSLATION`, making
missing/incorrect translation provider setup more visible during
development.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
cd95cda. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
bah, whoops, followup again
#8164 (review)

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [x] `other`

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk: only changes when the fallback `console.warn` fires, moving
it out of render and preventing repeated warnings on re-renders.
> 
> **Overview**
> Moves the "falling back to default translation" warning in
`useTranslation` from render-time to a `useEffect` keyed on
`translation?.messages`, so the warning only emits when messages are
missing (or change to missing) rather than on every render.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
87ae187. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@pull pull Bot locked and limited conversation to collaborators Mar 5, 2026
@pull pull Bot added the ⤵️ pull label Mar 5, 2026
@pull pull Bot merged commit 535ee94 into code:main Mar 5, 2026
@pull pull Bot had a problem deploying to deploy-staging March 5, 2026 21:13 Error
@pull pull Bot had a problem deploying to deploy-staging March 5, 2026 21:13 Error
@pull pull Bot had a problem deploying to deploy-production March 5, 2026 21:13 Failure
@pull pull Bot had a problem deploying to deploy-staging March 6, 2026 00:34 Failure
@pull pull Bot temporarily deployed to e2e-dotcom March 6, 2026 02:35 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant