This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/* eslint-disable no-restricted-syntax, no-await-in-loop */ | |
import crypto from 'node:crypto' | |
import fs from 'node:fs/promises' | |
// from https://github.com/lingui/js-lingui/blob/59f0eb3565611d5860c883aa42a20365392ca1d8/packages/message-utils/src/generateMessageId.ts | |
const UNIT_SEPARATOR = '\u001F' | |
function generateMessageId(msg, context = '') { |