mirror of
https://github.com/twentyhq/twenty.git
synced 2026-04-18 05:54:42 -04:00
## Problem The Crowdin GitHub Actions were failing with: ``` ❌ No sources found for 'packages/twenty-docs/user-guide/**/*.mdx' pattern ❌ No sources found for 'packages/twenty-docs/developers/**/*.mdx' pattern ❌ No sources found for 'packages/twenty-docs/twenty-ui/**/*.mdx' pattern ❌ No sources found for 'packages/twenty-docs/navigation/navigation.template.json' pattern ``` ## Root Cause The Crowdin config files are located at `.github/crowdin-docs.yml` and `.github/crowdin-app.yml`. By default, the Crowdin CLI resolves source paths relative to the config file's directory (`.github/`), not the repository root. So paths like `packages/twenty-docs/...` were being resolved as `.github/packages/twenty-docs/...`, which doesn't exist. ## Fix Added `base_path: ".."` to both Crowdin config files to make paths resolve relative to the repository root.
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
#
|
|
# Crowdin CLI configuration for Documentation translations
|
|
# See https://crowdin.github.io/crowdin-cli/configuration for more information
|
|
#
|
|
|
|
"project_id": 2
|
|
"preserve_hierarchy": true
|
|
"base_url": "https://twenty.api.crowdin.com"
|
|
"base_path": ".."
|
|
|
|
files: [
|
|
{
|
|
#
|
|
# MDX documentation files - user-guide
|
|
# Using md type to preserve JSX component structure
|
|
# This prevents Crowdin from reformatting <Warning>, <Accordion>, etc.
|
|
#
|
|
"source": "packages/twenty-docs/user-guide/**/*.mdx",
|
|
"translation": "packages/twenty-docs/l/%two_letters_code%/user-guide/**/%original_file_name%",
|
|
},
|
|
{
|
|
#
|
|
# MDX documentation files - developers
|
|
# Using md type to preserve JSX component structure
|
|
#
|
|
"source": "packages/twenty-docs/developers/**/*.mdx",
|
|
"translation": "packages/twenty-docs/l/%two_letters_code%/developers/**/%original_file_name%",
|
|
},
|
|
{
|
|
#
|
|
# MDX documentation files - twenty-ui
|
|
# Using md type to preserve JSX component structure
|
|
#
|
|
"source": "packages/twenty-docs/twenty-ui/**/*.mdx",
|
|
"translation": "packages/twenty-docs/l/%two_letters_code%/twenty-ui/**/%original_file_name%",
|
|
},
|
|
{
|
|
#
|
|
# Navigation labels template - translated into per-locale navigation.json
|
|
#
|
|
"source": "packages/twenty-docs/navigation/navigation.template.json",
|
|
"translation": "packages/twenty-docs/l/%two_letters_code%/navigation.json",
|
|
}
|
|
]
|
|
|