{"size": 500, "ext": "js", "max_stars_repo_path": "src/data/data.js", "max_stars_repo_name": "ELC/tabubiblico", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/data/data.js", "max_issues_repo_name": "ELC/tabubiblico", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/data/data.js", "max_forks_repo_name": "ELC/tabubiblico", "max_forks_repo_forks_event_min_datetime": "2021-08-16T22:32:05.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-16T22:32:05.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 21.7391304348, "max_line_length": 78, "alphanum_fraction": 0.666}
const categories = require('./data/categories.json');

const languages = ['de', 'es']

let data = {};

languages.forEach(language => {
  data[language] = {};
  Reflect.ownKeys(categories[language]).forEach(category =>  {
    data[language][category] = require(`./data/${language}/${category}.json`);
  })
});

export default class TabooData {

  static categories(language) {
    return categories[language];
  };

  static getCategory(category, language) {
    return data[language][category];
  }
}