|
@@ -53,6 +53,7 @@ module.exports = function(crowi) {
|
|
|
'app:confidential' : '',
|
|
'app:confidential' : '',
|
|
|
|
|
|
|
|
'app:fileUpload' : false,
|
|
'app:fileUpload' : false,
|
|
|
|
|
+ 'app:globalLang' : 'en',
|
|
|
|
|
|
|
|
'security:restrictGuestMode' : 'Deny',
|
|
'security:restrictGuestMode' : 'Deny',
|
|
|
|
|
|
|
@@ -283,6 +284,11 @@ module.exports = function(crowi) {
|
|
|
return getValueForCrowiNS(config, key) || 'GROWI';
|
|
return getValueForCrowiNS(config, key) || 'GROWI';
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ configSchema.statics.globalLang = function(config) {
|
|
|
|
|
+ const key = 'app:globalLang';
|
|
|
|
|
+ return getValueForCrowiNS(config, key);
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
configSchema.statics.isEnabledPassport = function(config) {
|
|
configSchema.statics.isEnabledPassport = function(config) {
|
|
|
// always true if growi installed cleanly
|
|
// always true if growi installed cleanly
|
|
|
if (Object.keys(config.crowi).length == 0) {
|
|
if (Object.keys(config.crowi).length == 0) {
|
|
@@ -605,6 +611,7 @@ module.exports = function(crowi) {
|
|
|
},
|
|
},
|
|
|
recentCreatedLimit: Config.showRecentCreatedNumber(config),
|
|
recentCreatedLimit: Config.showRecentCreatedNumber(config),
|
|
|
isAclEnabled: !Config.isPublicWikiOnly(config),
|
|
isAclEnabled: !Config.isPublicWikiOnly(config),
|
|
|
|
|
+ globalLang: Config.globalLang(config),
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
return local_config;
|
|
return local_config;
|