docs: Fix French navigation labels and translated internal links (#15723)

## Summary
Fixes French documentation navigation labels and internal link redirects
to English pages.

## Changes
1. **Translated French navigation** - All tab/group labels in
`docs.json` now display in French
2. **Automated link fixing** - Created `fix-translated-links.sh` script
that adds `/fr/` prefix to internal links
3. **CI Integration** - Script runs automatically after Crowdin syncs
translations
This commit is contained in:
Abdul Rahman
2025-11-09 17:46:37 +05:30
committed by GitHub
parent a4ac66cb4e
commit 7993e14d0a
3 changed files with 12 additions and 5 deletions
@@ -46,6 +46,13 @@ for lang_dir in "$DOCS_DIR"/*/ ; do
find "$lang_dir" -name "*.mdx" -type f -exec sed -i.bak \
"s|](/twenty-ui/|](/$lang_code/twenty-ui/|g" {} \;
find "$lang_dir" -name "*.mdx" -type f -exec sed -i.bak \
"s|https://docs\.twenty\.com/user-guide/|https://docs.twenty.com/$lang_code/user-guide/|g" {} \;
find "$lang_dir" -name "*.mdx" -type f -exec sed -i.bak \
"s|https://docs\.twenty\.com/developers/|https://docs.twenty.com/$lang_code/developers/|g" {} \;
find "$lang_dir" -name "*.mdx" -type f -exec sed -i.bak \
"s|https://docs\.twenty\.com/twenty-ui/|https://docs.twenty.com/$lang_code/twenty-ui/|g" {} \;
find "$lang_dir" -name "*.bak" -type f -delete
echo "$lang_code documentation links fixed"