Skip to content

Commit

Permalink
Add English to languages.json list
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmackay committed Jun 1, 2017
1 parent 57bc1bc commit 50e0e86
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gulp/transifex-download.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@ function saveTranslationList(languages, locales_dir) {
return language;
});

// Append English
languages.push({
rtl: false,
pluralequation: 'language.pluralequation',
code: 'en',
name: 'English',
nplurals: 2
});

languages.sort((a, b) => {
if (a.name < b.name) { return -1; }
if (a.name > b.name) { return 1; }
return 0;
});

return new Promise((resolve, reject) => {
fs.writeFile(locales_dir + 'languages.json', JSON.stringify({languages: languages}), (err) => {
if (err) {
Expand Down

0 comments on commit 50e0e86

Please sign in to comment.