Test Failed
Push — develop ( 424bfb...c8c23d )
by Endre
02:45
created

src/Language/Loader/Ajax.ts   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 9
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
mnd 0
bc 0
fnc 1
dl 0
loc 9
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A Ajax.loadLanguage 0 4 1
1
import ILoader from '../ILoader';
2
3
export default class Ajax implements ILoader {
4
  async loadLanguage(languageCode: string) {
5
    const response = await fetch('../I18n/' + languageCode + '.json');
6
7
    return response.json();
8
  }
9
}