Raysmond / SpringBlog

A simple blogging system implemented with Spring Boot + Hibernate + MySQL + Bootstrap4.
http://raysmond.com
BSD 3-Clause "New" or "Revised" License
1.64k stars 686 forks source link

included messages.properties file in app config #25

Open nate-getch opened 6 years ago

nate-getch commented 6 years ago

Need spring.messages.basename defined in app config so it can be accessed from the view templates.

Raysmond commented 6 years ago

Good! It's better to have a complete way to do i18n stuff. I'll consider it later.

Back to your commit, it seems the spring.messages.basename config path is not right, since it already has a parent path spring

nate-getch commented 6 years ago

If you are open to collaboration and merging my code, I am interested to work on the i18n feature.

Regarding my commit, I have tested the thymeleaf template pages reading the i18n/messages dir properly.

Raysmond commented 6 years ago

Yes, you're welcome to contribute. Can you commit a simple example, including the message property files and usages in thymeleaf? So I can review them and see if it's ok to merge.