Skip to content

Conversation

@orende
Copy link
Contributor

@orende orende commented Mar 4, 2023

A while ago I noticed a half-finished effort at adding internationalization to the project in the form of a partial messages_en.properties file. I decided to finish the work by externalizing all hardcoded strings from the html files into the messages_en.properties file as well as adding translations for Swedish and simplified Chinese. I also rewrote parts of the code in the interfaces package where strings had been hardcoded and replaced them with externalized strings. Finally, I wrote a LocaleContextResolver to handle the mapping of the "lang" query parameter value to matching message sources.

One feature I've left out for now is programmatic detection of new locales based on property file names, but that could be relatively easily added in the future.

@orende orende requested review from Modig and mackapappa March 4, 2023 11:52
@orende orende force-pushed the finish-internationalization-work branch from 4ffe581 to b171f21 Compare December 24, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants