kiesraad / abacus

Abacus, software voor verkiezingsuitslagen en zetelverdeling
https://kiesraad-abacus.pages.dev
European Union Public License 1.2
19 stars 6 forks source link

Epic: internationalization (i18n) #45

Open praseodym opened 6 months ago

praseodym commented 6 months ago

Setup of internationalization in the frontend, e.g. using i18next / react-i18next / formatjs.

Other considerations:

marlonbaeten commented 1 month ago

Discussed with @lkleuver

We introduce a vanilla translate function for now. We leverage a typescript interface to check at transpile time that all translations keys exist and are translated for the set of locales.

We only introduce dependencies (like i18-next) when we encounter necessary features that are not trivial to implement.

praseodym commented 1 month ago

Not sure what that will look like, but from a developer point of view I like how Django's translation functionality works. It would be nice if we could make it work similar to that.