buttondown / roadmap

Buttondown's public roadmap
48 stars 0 forks source link

Localize the big subscribe button #2999

Open jmduke opened 3 days ago

jmduke commented 3 days ago

image

The big ol' subscribe form that powers the archives is in its own isolated app called SubscribeFormContainer.vue. It's not particularly complicated, just verbose.

We're working on localization (https://github.com/buttondown/roadmap/issues/57), and a good first step into that arena would be localizing the big "Subscribe" button. We're already serializing the newsletter (which contains the locale via newsletter.locale) and passing it into the component, so this is largely just an exercise in finding the code that determines what that text should be and figuring out how to make it consider newsletter.locale.

What locales should I use?

For now, let's stick with the ones enumerated in the backend enum Newsletter.Locale.

Where should I get the localized strings?

I trust you!