Explorar el Código

add getter for app:systemLang

utsushiiro hace 7 años
padre
commit
fcc79f1d5c
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/server/models/config.js

+ 5 - 0
src/server/models/config.js

@@ -284,6 +284,11 @@ module.exports = function(crowi) {
     return getValueForCrowiNS(config, key) || 'GROWI';
   };
 
+  configSchema.statics.systemLang = function(config) {
+    const key = 'app:systemLang';
+    return getValueForCrowiNS(config, key);
+  };
+
   configSchema.statics.isEnabledPassport = function(config) {
     // always true if growi installed cleanly
     if (Object.keys(config.crowi).length == 0) {