mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-11 17:51:34 -04:00
Only uses files that actually end with ".ini" as locale settings.
Fixes https://github.com/ether/etherpad-lite/issues/1251
This commit is contained in:
parent
e02054d6fe
commit
5d3372b95b
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ exports.availableLangs = {en: languages.getLanguageInfo('en')}
|
|||
|
||||
fs.readdir(localesPath, function(er, files) {
|
||||
files.forEach(function(locale) {
|
||||
if(!foo.match(/\.ini$/)) return; // irrelevant
|
||||
locale = locale.split('.')[0]
|
||||
if(locale.toLowerCase() == 'en') return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue