Content Parser
This service parses translations from Google Sheets and returns ZIP archives containing one JSON file per locale.
Open Swagger documentationAutomate with a Makefile
-
Save the snippet below as
Makefilein your project root. -
Replace
{your_platform}with the endpoint you need (e.g.android,ios,desktop,web/client, etc). -
Replace
{your_dir_with_locales}with the target directory for the extracted files. -
Run
make update-contentto fetch and unpack the latest translations.
# Usage example: make update-content
URL = https://mxp-parser.cc/translations/{your_platform}
DEST = ./{your_dir_with_locales}
TMP = /tmp/content.zip
update-content:
@echo "๐ฅ Downloading content from: $(URL)..."
@curl -fL "$(URL)" -o $(TMP)
@echo "๐งน Cleaning up directory: $(DEST)..."
@rm -rf $(DEST)
@mkdir -p $(DEST)
@echo "๐ฆ Extracting archive to: $(DEST)..."
@unzip -o $(TMP) -d $(DEST)
@echo "๐๏ธ Removing temporary files..."
@rm $(TMP)
@echo "โ
Update complete! Files saved to: $(DEST)"
.PHONY: update-content