-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat(docs): i18n stuff #820
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://create-t3-app-git-left-sidebar-language-t3-oss.vercel.app/ |
Could have just continued on my PR :( |
oh yeah my bad :/ feel free to merge this into your pr and close |
I think parsing a titles from tanslation pages would be better then using constant with paths and labels |
i agree this would be better, but can't think of an easy way to do it currently. only way i can think of is to import every article in each language in config.ts and get frontmatter from all of them, which is a lot. maybe there's something to help us in astro docs, can check tonight. |
also dont merge before arabic is removed from the list of known languages, otherwise we're deploying two fake arabic pages |
@juliusmarminge lmk when you're ready to merge and i'll remove the arabic placeholder stuff (or feel free to remove it yourself) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool lets ship
* links in left sidebar use active language * add ToC for in progress translations * prettier * github icon rtl * implement getIsRtlFromUrl * navbar rtl fix * gap in search * use isLtr * code blocks are always ltr * leftSidebar has scrollbar on right side ltr&rtl * arabic sample files * more rtl styling * fix merge conflict * fix missing '!' * prettier * use padding-start * css cleanup * more direction-independent classes * rtl spacing stuff * fix lists and tables in rtl * fix avatar in quotes (but should be a component) * prettier * fix code embeds having rtl punctuation * slightly less awful nativeHeader type * prettier * outdated docs ltr + mx * prettier * fix ts-errors * add todo * chore: add changeset * remove changeset Co-authored-by: Julius Marminge <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
Resolves #821, #792
✅ Checklist
Changelog
Some more preparations for getting translations online
Will require more work in the future, but i think it makes sense to merge WIP occasionally
Screenshots
💯