Skip to content

Commit ddaa1ac

Browse files
feat: Update the extract_translations target in the Makefile (#152)
1 parent f242a7c commit ddaa1ac

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ packages/
1010

1111
### i18n ###
1212
src/i18n/transifex_input.json
13+
src/i18n/messages.ts
14+
src/i18n/messages/
15+
src/i18n/site-messages/index.ts
1316

1417
### Editors ###
1518
.DS_Store

Makefile

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
TURBO = TURBO_TELEMETRY_DISABLED=1 turbo --dangerously-disable-package-manager-check
22
intl_imports = ./node_modules/.bin/intl-imports.js
3-
transifex_utils = ./node_modules/.bin/transifex-utils.js
43
i18n = ./src/i18n
5-
transifex_input = $(i18n)/transifex_input.json
6-
7-
# This directory must match .babelrc .
8-
transifex_temp = ./temp/babel-plugin-formatjs
94

105
precommit:
116
npm run lint
@@ -39,16 +34,9 @@ dev-packages: turbo.json
3934
dev-site: bin-link
4035
npm run dev
4136

42-
i18n.extract:
43-
# Pulling display strings from .jsx files into .json files...
44-
rm -rf $(transifex_temp)
45-
npm run-script i18n_extract
46-
47-
i18n.concat:
48-
# Gathering JSON messages into one file...
49-
$(transifex_utils) $(transifex_temp) $(transifex_input)
50-
51-
extract_translations: | requirements i18n.extract i18n.concat
37+
extract_translations: | requirements
38+
# Pulling display strings from source files into src/i18n/transifex_input.json...
39+
npm run i18n_extract
5240

5341
# Despite the name, we actually need this target to detect changes in the incoming translated message files as well.
5442
detect_changed_source_translations:

0 commit comments

Comments
 (0)