Skip to content

Commit

Permalink
fix: translation and console errors
Browse files Browse the repository at this point in the history
  • Loading branch information
awais-ansari committed Nov 27, 2024
1 parent e61c529 commit 33ba93d
Show file tree
Hide file tree
Showing 5 changed files with 12,214 additions and 5,440 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist/
node_modules/
__mocks__/
__snapshots__/
src/i18n/messages/
18 changes: 16 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


intl_imports = ./node_modules/.bin/intl-imports.js
transifex_utils = ./node_modules/.bin/transifex-utils.js
i18n = ./src/i18n
Expand All @@ -19,6 +17,11 @@ test.npm.%: validate-no-uncommitted-package-lock-changes
npm run $(*)

.PHONY: requirements

precommit:
npm run lint
npm audit

requirements: ## install ci requirements
npm ci

Expand All @@ -38,6 +41,17 @@ detect_changed_source_translations:
# Checking for changed translations...
git diff --exit-code $(i18n)

# Pushes translations to Transifex. You must run make extract_translations first.
push_translations:
# Pushing strings to Transifex...
tx push -s
# Fetching hashes from Transifex...
./node_modules/@edx/reactifex/bash_scripts/get_hashed_strings_v3.sh
# Writing out comments to file...
$(transifex_utils) $(transifex_temp) --comments --v3-scripts-path
# Pushing comments to Transifex...
./node_modules/@edx/reactifex/bash_scripts/put_comments_v3.sh

pull_translations:
rm -rf src/i18n/messages
mkdir src/i18n/messages
Expand Down
Loading

0 comments on commit 33ba93d

Please sign in to comment.