Prototype: Internationalization setup for BookBrainz (About page)

Hi,

I’ve been exploring how to add internationalization to BookBrainz and building a small prototype using the About page.

The goal was to test whether react-i18next can be integrated into the existing structure without breaking link rendering.

I set up react-i18next with language detection and added English and Spanish translations.

While doing this, I ran into an issue with links not rendering properly inside translations. Fixed it by using indexed tags with the Trans component (e.g. <0>...</0>), and now links like licensing page, dumps, and documentation are showing correctly.

Also checked that names and inline links inside the story section work fine.

I went through the MetaBrainz translation setup (Weblate) and tried to follow a similar structure so this can fit in later:
https://translations.metabrainz.org/

This is just a prototype to test the approach.

What can be done more:

  • fix/improve the language toggle button UI

  • clean up the structure a bit

  • try extending this to other pages

Would love feedback on whether this direction looks reasonable before I include it in my proposal.

Thanks

2 Likes