mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
Merge pull request #1177 from marcelklehr/fix/optimize-l10n-loading-times
optimize l10n loading times
This commit is contained in:
commit
d6c0f96084
5 changed files with 31 additions and 27 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue