Skip to content

docs: fix missing useI18n import in NotFoundLayout#1265

Merged
ulivz merged 1 commit intomainfrom
fix/docs-404-translation-error
Aug 26, 2025
Merged

docs: fix missing useI18n import in NotFoundLayout#1265
ulivz merged 1 commit intomainfrom
fix/docs-404-translation-error

Conversation

@ulivz
Copy link
Member

@ulivz ulivz commented Aug 26, 2025

Summary

Fixed 404 page white screen issue in websites/docs by adding missing useI18n import in NotFoundLayout component.

The component was using t() function for translations without importing useI18n from rspress/runtime, causing ReferenceError: t is not defined in browser console.

Checklist

  • Added or updated necessary tests (Optional).
  • Updated documentation to align with changes (Optional).
  • Verified no breaking changes, or prepared solutions for any occurring breaking changes (Optional).
  • My change does not involve the above items.

@netlify
Copy link

netlify bot commented Aug 26, 2025

Deploy Preview for agent-tars-docs ready!

Name Link
🔨 Latest commit 2abb249
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/68ad5732814cca00075366d8
😎 Deploy Preview https://deploy-preview-1265--agent-tars-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ulivz ulivz changed the title fix(docs): add missing useI18n import in NotFoundLayout doc: add missing useI18n import in NotFoundLayout Aug 26, 2025
@ulivz ulivz changed the title doc: add missing useI18n import in NotFoundLayout docs: fix missing useI18n import in NotFoundLayout Aug 26, 2025
@ulivz ulivz merged commit 70f67a6 into main Aug 26, 2025
10 checks passed
@ulivz ulivz deleted the fix/docs-404-translation-error branch August 26, 2025 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments