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

This commit is contained in:
John McLear 2020-09-23 09:22:08 +01:00
parent 1bb44098df
commit ff4da04907
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.");
}