Skip to content

Commit

Permalink
Update intl extraction script
Browse files Browse the repository at this point in the history
  • Loading branch information
NuckChorris committed Jun 19, 2022
1 parent 4873358 commit 349d34b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/extract.ts
Expand Up @@ -3,13 +3,14 @@ import { extract } from '@formatjs/cli';
import glob from 'fast-glob';
import stringify from 'json-stable-stringify';

const OUT_FILE = 'src/translations/en-US.json';
const OUT_FILE = 'src/locales/translations/en-US.json';

(async () => {
const files = await glob('src/**/*.tsx');
const existing = JSON.parse(await readFile(OUT_FILE, 'utf8'));
const extracted = JSON.parse(
await extract(files, {
additionalFunctionNames: ['formatMessage'],
idInterpolationPattern: '[sha512:contenthash:base64:6]',
extractSourceLocation: true,
format: 'crowdin',
Expand Down

0 comments on commit 349d34b

Please sign in to comment.