translateResource = (resource) => ({
    ...resource,
    packages:
      resource.packages &&
      Object.fromEntries(
        Object.entries(resource.packages).map(([id, value]) => [
          translate(id),
          value,
        ])
      ),
  })
TODO: use real policy type here

@param {any} resource
@returns