Support translating default aside titles#517
Conversation
🦋 Changeset detectedLatest commit: 27141e2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
@delucis Hi Chris, Can we keep pushing this PR? |
|
Hey @liruifengv — so sorry I haven’t had time to look at this yet. Promise I’ll get to this ASAP. Thank you again for pushing this — super helpful 💜 |
|
Hey @liruifengv! Sorry to take so long to get back on this one, but I think we’re finally ready to try to do this. In #1003 I made it possible for plugins like the asides one to more easily access the same translations system as other Starlight code. I’ve updated this branch and you should now find const t = useTranslations(locale);
const label = t('aside.note'); // or tip, danger etc.Are you still interested on working on this? Let me know if not and I’ll take a look at cleaning up your work. Thanks again for your patience on this. By the way, all the checks are failing because the |
I'll take a look. |
delucis
left a comment
There was a problem hiding this comment.
Thanks again for the work and patience on this PR @liruifengv! I just made a last couple of changes and added some unit tests to make sure it’s working. LGTM!!! 🚀
Super excited to merge this finally. Thank you for championing it 🙌
|
Thank you!
|
I think this is ok as ALL languages currently get the English version by default anyway. My plan is to ask for help from the community to update these as soon as we merge.
Ah, good catch! Thank you for flagging this. Yes, might be a good idea to remove that change and make it when updating the rest of the page. |
Done. |
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

What kind of changes does this PR include?
Description
I added translations according to the astro docs, some are missing translations, en is used by default and needs to be updated
missing translations: