春季启动国际化消息文件名结构
Spring Boot允许您通过设置Basename,然后进行一个语言环境来自定义消息属性文件,例如消息。Properties和 Message_de.properties 。
我想在这些文件中添加后缀,例如 message_de_file1.properties 。
有没有一种方法来自定义使用此文件结构。 甚至更好,例如 /I18n/en/messages.properties 和/i18n/de/messages.properties 。
我需要这样做的原因是因为我需要与之合作的自动翻译服务提供商。
Spring boot allows you to customize message properties files by setting a basename followed by a the locale for example messages.properties and messages_de.properties.
I want to add a suffix to these files for example messages_de_file1.properties.
Is there a way to customize to use this file structure.
Or even better for example /i18n/en/messages.properties and /i18n/de/messages.properties.
The reason I need to do this is because of the automated translation service provider I am required to work with.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个财产:
(
There's a property for that:
(https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.internationalization)
So you can do something like