Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

593 B
Raw Blame
#!/usr/bin/env node

import { createHash } from 'node:crypto'
import pt from '../src/locales/pt.js'
import { PT_BR_OVERRIDES } from '../src/locales/pt-BR.js'

const inherited = Object.entries(pt)
  .filter(([key]) => !(key in PT_BR_OVERRIDES))
  .sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))
const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex')

console.log(JSON.stringify({
  overrides: Object.keys(PT_BR_OVERRIDES).length,
  inherited: inherited.length,
  fingerprint,
  ...(process.argv.includes('--list') ? { entries: inherited } : {})
}, null, 2))