Not too often I post about work, but a piece of work I’ve been involved in for most of this year has finally been released: You can now translate every single text string in the GOV.UK Design System. All of ‘em!

github.com/alphagov/govuk-fron

design-system.service.gov.uk/

"Big whoop," you may think, "you just replaced hardcoded strings with variables."

In some cases, yes. In others, we had to work around hardcoded string interpolation, devise methods of swapping out strings based on other variables, standardise new APIs to do all this with...

Oh, and also it had to work in a way that's backwards compatible with hundreds of existing GOV.UK services (some of them partially translated), be WCAG 2.1 AA compilant, and… most painfully of all, it even works in Internet Explorer 8.

It's not fully fledged, by any means. We've done what was required for our existing components and for future-proofing.

Unfortunately things like full RTL language support (which I'd have *loved* to do) hit the cutting room floor early on.

@batbeeps that rules! i've worked on localization processes and they're nothing to take lightly 💖​

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!