|
@@ -125,6 +125,7 @@ export interface TranslationPairingManifest {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const README_ARTIFACT = /(?:^|\/)readme(?:\.md|\.zh\.md|\.i18n\.yaml)$/i
|
|
const README_ARTIFACT = /(?:^|\/)readme(?:\.md|\.zh\.md|\.i18n\.yaml)$/i
|
|
|
|
|
+const ROOT_CONTRIBUTING_ARTIFACT = /^contributing(?:\.md|\.zh\.md|\.i18n\.yaml)$/i
|
|
|
const NON_SOURCE_DIRECTORIES = new Set([
|
|
const NON_SOURCE_DIRECTORIES = new Set([
|
|
|
'node_modules',
|
|
'node_modules',
|
|
|
'lib',
|
|
'lib',
|
|
@@ -179,6 +180,7 @@ function isTranslationSourceExcluded(file: string): boolean {
|
|
|
export function isTranslationScopeFile(file: string): boolean {
|
|
export function isTranslationScopeFile(file: string): boolean {
|
|
|
return !file.startsWith('.agents/notes/archived/')
|
|
return !file.startsWith('.agents/notes/archived/')
|
|
|
&& !isTranslationSourceExcluded(file) && (README_ARTIFACT.test(file)
|
|
&& !isTranslationSourceExcluded(file) && (README_ARTIFACT.test(file)
|
|
|
|
|
+ || ROOT_CONTRIBUTING_ARTIFACT.test(file)
|
|
|
|| file.startsWith('.agents/notes/')
|
|
|| file.startsWith('.agents/notes/')
|
|
|
|| file.startsWith('docs/')
|
|
|| file.startsWith('docs/')
|
|
|
|| file.startsWith('python/'))
|
|
|| file.startsWith('python/'))
|