Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot Spring启动检测丢失的转换_Spring Boot_Gradle_Intellij Idea_Internationalization - Fatal编程技术网

Spring boot Spring启动检测丢失的转换

Spring boot Spring启动检测丢失的转换,spring-boot,gradle,intellij-idea,internationalization,Spring Boot,Gradle,Intellij Idea,Internationalization,我使用的是Spring Boot v2.4.1,对于不同的语言,我有不同的message.properties。例如message.properties,message-fr.properties,message pt.properties等等 通常,我在工作时插入默认语言(message.properties)的消息,并且需要新的本地化文本。如果我在同一时刻受到启发,我会将其添加到默认语言中,我会将其添加到所有其他语言中。但我没有100%的时间受到启发 因此,我(或我的客户)意识到,当我们从默

我使用的是Spring Boot v2.4.1,对于不同的语言,我有不同的
message.properties
。例如
message.properties
message-fr.properties
message pt.properties
等等

通常,我在工作时插入默认语言(
message.properties
)的消息,并且需要新的本地化文本。如果我在同一时刻受到启发,我会将其添加到默认语言中,我会将其添加到所有其他语言中。但我没有100%的时间受到启发

因此,我(或我的客户)意识到,当我们从默认语言切换到任何其他语言时,就会缺少翻译

FWIW我正在使用IntelliJ IDEA和Gradle

我想知道如果缺少翻译,是否有方法(可能是IDE或Gradle插件)导致错误。我的意思是,默认语言
.properties
文件中存在消息键,但其他文件中没有

更新
另外,我知道Android Studio(基于intelliJ并使用Gradle)会在缺少翻译时抛出错误。我想重现同样的行为。

有设置(属性)|编辑器|检查|属性文件|不一致的资源包检查,您可以从分析|昆虫代码按名称运行检查操作运行检查。

谢谢!那正是我要找的!事实上,我在检查中发现了其他几个警告,哈哈。你知道我是否可以用gradle任务触发一个名为的检查吗?所以我可以在构建时找到缺失的翻译。