Node.js based forum software built for the modern web
Build language files on change
Peter Jaszkowiake94d47976dc5
diff --git a/Gruntfile.js b/Gruntfile.jsindex be761a16cf..99a103a86d 100644--- a/Gruntfile.js+++ b/Gruntfile.js@@ -27,6 +27,8 @@ module.exports = function (grunt) {compiling = 'js';} else if (target === 'templatesUpdated') {compiling = 'tpl';+ } else if (target === 'langUpdated') {+ compiling = 'lang';} else if (target === 'serverUpdated') {// Do nothing, just restart}@@ -93,7 +95,15 @@ module.exports = function (grunt) {'!node_modules/nodebb-*/node_modules/**','!node_modules/nodebb-*/.git/**']- }+ },+ langUpdated: {+ files: [+ 'public/language/**/*.json',+ 'node_modules/nodebb-*/**/*.json',+ '!node_modules/nodebb-*/node_modules/**',+ '!node_modules/nodebb-*/.git/**',+ ],+ },}});