Skip to content

Setup Instructions

This page covers the current localization setup path.

  • the Clawdie repo checked out on the host
  • a Crowdin API token
  • a working cms jail with the Astro docs project already provisioned

The docs runtime is not set up as a separate standalone Astro install anymore.

You can provide the token in any one of these ways.

Terminal window
mkdir -p ~/.config/clawdie
echo "tskey-your-token-here" > ~/.config/clawdie/crowdin-token
chmod 600 ~/.config/clawdie/crowdin-token
Terminal window
cd /home/<agent>/clawdie-ai
echo 'CROWDIN_PERSONAL_TOKEN=tskey-your-token-here' >> .env
Terminal window
export CROWDIN_PERSONAL_TOKEN=tskey-your-token-here

Run from the host repo root:

Terminal window
cd /home/<agent>/clawdie-ai
./scripts/crowdin-sync.sh --status

If this works, the localization sync scripts can see your token.

When English source docs change:

Terminal window
cd /home/<agent>/clawdie-ai
./scripts/crowdin-sync.sh --push

This publishes source markdown from docs/public/ to the Crowdin project.

Step 4: Pull translations back into the repo

Section titled “Step 4: Pull translations back into the repo”

After translators have updated a locale:

Terminal window
cd /home/<agent>/clawdie-ai
./scripts/crowdin-sync.sh --pull

This updates translated markdown under paths like:

  • docs/public/sl/
  • docs/public/de/
  • docs/public/hr/

Deploy still happens through the shared Astro project in the cms jail:

Terminal window
cd /usr/home/<tenant>/<tenant>-site
npm run deploy

That command:

  1. syncs host-side docs content into the Astro tree
  2. builds the static site
  3. deploys it into the cms jail webroot

Check the live site:

Terminal window
curl -sI https://docs.clawdie.si/
curl -sI https://docs.clawdie.si/en/

Then verify any locale-specific pages you expected to change.

  • Edit markdown on the host, not inside the jail.
  • Crowdin manages translations, not deployment.
  • Astro deployment is shared with the docs publishing flow, not a separate localization runtime.