diff --git a/public/modules/core/services/languages.client.service.js b/public/modules/core/services/languages.client.service.js index 8c67328144..1ec65a2b9a 100644 --- a/public/modules/core/services/languages.client.service.js +++ b/public/modules/core/services/languages.client.service.js @@ -2,19 +2,19 @@ angular.module('core').factory('Languages', [ function() { - var service = {} + var service = {}; service.get = function (type) { - if (type == 'array'){ - var langs_arr = [] + if (type === 'array'){ + var langs_arr = []; for (var code in window.languages) { - langs_arr.push({key: code, name: window.languages[code]}) + langs_arr.push({key: code, name: window.languages[code]}); } return langs_arr; - } else if (type == 'object'){ + } else if (type === 'object'){ return window.languages; } - } + }; return service; }