Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
[FIX] App: get languages list
Browse files Browse the repository at this point in the history
  • Loading branch information
vhpoet committed May 4, 2015
1 parent 8bac914 commit f1c08f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/entry/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ var tabdefs = [

// Language
window.lang = (function(){
var languages = _.pluck(require('../../../l10n/languages.json'), 'code');
var languages = _.pluck(require('../../../l10n/languages.json').active, 'code');
console.log('langs', languages);
var resolveLanguage = function(lang) {
if (!lang) return null;
if (languages.indexOf(lang) != -1) return lang;
Expand Down

0 comments on commit f1c08f7

Please sign in to comment.