mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
feat: mark non-English translation files as linguist-generated (#5943)
Co-authored-by: Roo Code <roomote@roocode.com>
This commit is contained in:
parent
5a459d0516
commit
e28fad131a
1 changed files with 14 additions and 0 deletions
14
.gitattributes
vendored
14
.gitattributes
vendored
|
|
@ -4,3 +4,17 @@ src/assets/docs/demo.gif filter=lfs diff=lfs merge=lfs -text
|
|||
|
||||
# Test snapshot files - mark as linguist-generated to exclude from GitHub language statistics
|
||||
*.snap linguist-generated=true
|
||||
|
||||
# Non-English translation files - mark as linguist-generated to exclude from GitHub language statistics
|
||||
# Root locales directory (contains only non-English translations)
|
||||
locales/** linguist-generated=true
|
||||
|
||||
# Mark all locale directories as generated first
|
||||
src/i18n/locales/** linguist-generated=true
|
||||
webview-ui/src/i18n/locales/** linguist-generated=true
|
||||
|
||||
# Then explicitly mark English directories as NOT generated (override the above)
|
||||
src/i18n/locales/en/** linguist-generated=false
|
||||
webview-ui/src/i18n/locales/en/** linguist-generated=false
|
||||
|
||||
# This approach uses gitattributes' last-match-wins rule to exclude English while including all other locales
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue