Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 9 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
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 | } |