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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user