Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multiple languages #84

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

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 mackapappa and Modig 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.

1 participant