{"size": 476, "ext": "js", "max_stars_repo_path": "scripts/translations.js", "max_stars_repo_name": "kdgm/maf-cli", "max_stars_repo_stars_event_min_datetime": "2019-02-12T15:03:46.000Z", "max_stars_repo_stars_event_max_datetime": "2019-02-12T15:03:46.000Z", "max_issues_repo_path": "scripts/translations.js", "max_issues_repo_name": "kdgm/maf-cli", "max_issues_repo_issues_event_min_datetime": "2018-01-18T15:55:56.000Z", "max_issues_repo_issues_event_max_datetime": "2019-12-28T15:55:43.000Z", "max_forks_repo_path": "scripts/translations.js", "max_forks_repo_name": "kdgm/maf-cli", "max_forks_repo_forks_event_min_datetime": "2018-06-21T08:00:21.000Z", "max_forks_repo_forks_event_max_datetime": "2021-02-15T12:05:26.000Z"}
{"max_stars_count": 1, "max_issues_count": 3, "max_forks_count": 3, "avg_line_length": 28.0, "max_line_length": 93, "alphanum_fraction": 0.6890756303}
#!/usr/bin/env node

'use strict'

const path = require( 'path' )
const fetch = require( 'node-fetch' )
const writeFile = require( 'util' ).promisify( require( 'fs' ).writeFile )

module.exports = async function() {
  const res = await fetch( `https://dashboard.metrological.com/locales/en/translation.json` )

  return writeFile(
    path.resolve( process.cwd(), `./node_modules/maf-cli/lib/resources/translation.json` )
  , JSON.stringify( await res.json(), null, 2 )
  )
}
