no need to ask for translations if no template files are included

check-backend-plugin-tests
John McLear 2020-09-23 09:22:08 +01:00
parent 1bb44098df
commit 56fd1d4810
1 changed files with 2 additions and 1 deletions

View File

@ -182,7 +182,8 @@ fs.readdir(pluginPath, function (err, rootFiles) {
}
}
if(files.indexOf("locales") === -1){
// if we include templates but don't have translations...
if(files.indexOf("templates") !== -1 && files.indexOf("locales") === -1){
console.warn("Translations not found, please create. Translation files help with Etherpad accessibility.");
}