Completed
Push — master ( d863a8...aaeace )
by Andres
30s
created

angular.config   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 136

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
dl 0
loc 136
rs 8.2857
nop 1

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
'use strict';
2
3
angular
4
  .module('game')
5
  .config(['$translateProvider', function ($translateProvider) {
6
  $translateProvider.translations('en', {
7
    'GAME_NAME': 'Nucleogenesis',
8
    'BANDWIDTH': 'Bandwidth',
9
    'ADJUST_AMOUNT': 'Adjust amount',
10
    'ADJUST_LEVEL': 'Adjust level',
11
    'UPGRADE': 'Upgrades',
12
    'LEVEL': 'Level',
13
    'ADD': 'Add',
14
    'SLOTS': 'Slots',
15
    'REACTION': 'Reaction',
16
    'REDOX': 'Redox',
17
    'ACTIVE': 'Active',
18
    'REMOVE': 'Remove',
19
    'FROM': 'From',
20
    'TO': 'To',
21
    'INDEX': {
22
      'MATTER': 'Matter',
23
      'EXOTIC': 'Exotic matter',
24
      'DARK': 'Dark matter',
25
      'REDOX': 'Redox',
26
      'REACTIONS': 'Reactions',
27
      'FUSION': 'Fusion',
28
      'TABLE': 'Periodic Table',
29
      'ACHIEVEMENTS': 'Achievements',
30
      'DASHBOARD': 'Dashboard',
31
      'STATS': 'Statistics',
32
      'OPTIONS': 'Options',
33
      'DEV_WARNING': '<b>Warning:</b> This is an early beta version under heavy development. Expect unbalanced gameplay, bugs, save wipes and broken features.',
34
      'FASTER_TICKS': 'Faster ticks: spend your offline gains to accelerate game speed.',
35
      'ACTIVATE': 'Activate',
36
      'ACHIEVEMENT': 'Achievement'
37
    },
38
    'ACHIEVEMENTS': {
39
      'HIDE_COMPLETE': 'Hide completed achivements:'
40
    },
41
    'DARK': {
42
      'DESCRIPTION': 'Sacrifice your progress to obtain dark matter. Dark matter boosts your global production {{ct.data.constants.DARK_POWER*100}}% and unlocks new upgrades.',
43
      'PRESTIGE_NOW': 'Prestige now to obtain',
44
      'PRESTIGE': 'Prestige',
45
      'PRODUCTION': 'You produced'
46
    },
47
    'DASHBOARD': {
48
      'MISC': 'Misc.'
49
    },
50
    'ELEMENT_SELECT': {
51
      'SELECT': 'Select an element for slot'
52
    },
53
    'ELEMENTS': {
54
      'DESCRIPTION': 'Buy new elements to unlock generators and upgrades. Success rate is proportional to each element abundance. Accumulate resources or spend more <get-html value="\'dark_matter\'"></get-html> to increase the chance of success. All used <get-html value="\'dark_matter\'"></get-html> will be consumed on purchase.',
55
      'BUY_AMOUNT': 'Buy amount',
56
      'LEGEND': 'Legend',
57
      'COLOR': 'Color',
58
      'STATE': 'State',
59
      'HIDE': 'Hide',
60
      'PURCHASED': 'Purchased',
61
      'AVAILABLE': 'Available',
62
      'UNAVAILABLE': 'Unavailable',
63
      'SYNTHETIC': 'Synthetic',
64
      'ABUNDANCE': 'Abundance',
65
      'ISOTOPES': 'Isotopes',
66
      'REDOXES': 'Redoxes',
67
      'BUY': 'Buy',
68
      'SUCCESS': 'Success'
69
    },
70
    'EXOTIC': {
71
      'HIDE': 'Hide bought upgrades',
72
      'SORT': 'Sort by',
73
      'SORT_NAME': 'Name',
74
      'SORT_PRICE': 'Price',
75
      'SACRIFICE': 'Sacrifice your progress to obtain exotic matter. Exotic matter boosts your production for the element by {{ct.data.constants.EXOTIC_POWER*100}}% and unlocks new upgrades.',
76
      'BOOST': 'You can spend subatomic particles to boost your exotic matter production.',
77
      'BOOST_TOTAL': 'Total boost',
78
      'PRESTIGE_NOW': 'Prestige now to obtain',
79
      'PRESTIGE': 'Prestige',
80
      'PRODUCED': 'You produced'
81
    },
82
    'FUSION': {
83
      'CAPACITY': 'Capacity',
84
      'AREA': 'Area',
85
      'AMOUNT': 'Adjust amount',
86
      'LEVEL': 'Adjust level',
87
      'BAND': 'eV bandwidth',
88
      'BEAM': 'Beam',
89
      'TARGET': 'Target',
90
      'NO_PRODUCT': 'No product for these source isotopes',
91
      'PRODUCT': 'Product',
92
      'ISOTOPE': 'Isotope',
93
      'ENERGY': 'Energy',
94
      'BARRIER': 'Coulomb barrier',
95
      'YIELD_P': 'Yield',
96
      'YIELD_TOTAL': 'Yield total',
97
      'TOTAL_TIME': 'Total time',
98
      'REACTION': 'Reaction',
99
      'LOAD': 'Load',
100
      'UNLOAD': 'Unload',
101
      'RUN': 'Run'
102
    },
103
    'GENERATORS': {
104
      'ELECTRONEG': 'Electronegativity',
105
      'GENERATOR': 'Generator',
106
      'NUMBER': 'Number',
107
      'TOTAL': 'Total',
108
      'PRICE': 'Price',
109
      'BUY': 'Buy'
110
    },
111
    'OPTIONS': {
112
      'ERASE': 'Erase save',
113
      'IMPORT': 'Import Save',
114
      'EXPORT': 'Export Save',
115
      'FORMAT': 'Number Format',
116
      'STD': 'Standard',
117
      'SCI': 'Scientific',
118
      'HY': 'Hybrid',
119
      'ENG': 'Engineering',
120
      'GITHUB': 'Github',
121
      'CHANGE': 'Changelog'
122
    },
123
    'STATS': {
124
      'EXO': 'Exotic run',
125
      'DARK': 'Dark run',
126
      'ALL': 'All time'
127
    },
128
    'UPGRADES': {
129
      'HIDE': 'Hide bought upgrades',
130
      'SORT': 'Sort by',
131
      'NAME': 'Name',
132
      'PRICE': 'Price',
133
      'GLOBAL': 'Global',
134
      'LEVEL': 'Level',
135
      'BUY_ALL': 'Buy all'
136
    }
137
  });
138
139
  $translateProvider.preferredLanguage('en');
140
}]);
141