Skip to content

Commit

Permalink
Fix language names on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandru Rosianu committed Jun 9, 2016
1 parent 84b2b3c commit 2a58391
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripts/browser/menus/templates/main-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ const availableLanguages = getAvailableDictionaries()
.map((langCode) => {
return {
code: langCode,
name: languageCodes[langCode] || languageCodes[langCode.replace('-', '_').split('_')[0]]
name: languageCodes[langCode] ||
languageCodes[langCode.replace('-', '_')] ||
languageCodes[langCode.replace('-', '_').split('_')[0]]
};
})
.sort((a, b) => {
Expand Down

0 comments on commit 2a58391

Please sign in to comment.