summaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2012-11-17 07:31:21 -0800
committerJohn McLear <john@mclear.co.uk>2012-11-17 07:31:21 -0800
commitd6c0f9608403a6ba0f330d12da0fb68e65d66cd6 (patch)
treeb373eb123e3f9f4cf8a62137d46565fcc24c3418 /src/node
parent73eafb92c27c57a5936ec241a228657e16aa06b7 (diff)
parent5baef07b559bbc6d6cd1410ffd0c8f9e987ef575 (diff)
downloadetherpad-lite-d6c0f9608403a6ba0f330d12da0fb68e65d66cd6.zip
Merge pull request #1177 from marcelklehr/fix/optimize-l10n-loading-times
optimize l10n loading times
Diffstat (limited to 'src/node')
-rw-r--r--src/node/hooks/i18n.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node/hooks/i18n.js b/src/node/hooks/i18n.js
index 6238f2cb..50946c42 100644
--- a/src/node/hooks/i18n.js
+++ b/src/node/hooks/i18n.js
@@ -5,7 +5,9 @@ var Globalize = require('globalize')
var localesPath = __dirname+"/../../locales";
-var localeIndex = '[*]\r\n@import url(locales/en.ini)\r\n';
+// Serve English strings directly with /locales.ini
+var localeIndex = fs.readFileSync(localesPath+'/en.ini')+'\r\n';
+
exports.availableLangs = {en: 'English'};
fs.readdir(localesPath, function(er, files) {