Klimatbyran / klimatkollen

https://www.klimatkollen.se
MIT License
45 stars 48 forks source link

Add support for basic i18n: refactor strings to separate content from code #345

Closed LudwikJaniuk closed 7 months ago

LudwikJaniuk commented 9 months ago

User-facing text strings are currently spread out all over the codebase. It would be nice to be able to translate klimatkollen to e.g. English - but as a first step, the strings need to be brought together into a single file/class that it is possible to replace.

Greenheart commented 7 months ago

Working on this since yesterday. Draft PR hopefully ready soon :)

First steps for translated content

LudwikJaniuk commented 7 months ago

I think when I created this issue I only thought of this part:

Extract all strings that can easily be translated. This includes pages, but also other code that uses localized strings.

But these are all important considerations for making a good translations. Feel free to edit the title if you intend to work towards the larger scope of a full-on internationalization within this ticket.