Showing 3 of 3 total issues
File localization.js
has 297 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
angular.module('ngLocalize')
.service('locale', function ($injector, $http, $q, $log, $rootScope, $window, localeConf, localeEvents, localeSupported, localeFallbacks) {
var TOKEN_REGEX = localeConf.validTokens || new RegExp('^[\\w\\.-]+\\.[\\w\\s\\.-]+\\w(:.*)?$'),
$html = angular.element(document.body).parent(),
currentLocale,
Function loadBundle
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadBundle(token) {
var path = token ? token.split('.') : '',
root = bundles,
parent,
locale = currentLocale,
Function getLocalizedString
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getLocalizedString(txt, subs) {
var result = '',
bundle,
key,
A,