diff --git a/packages/decap-cms-core/src/backend.ts b/packages/decap-cms-core/src/backend.ts index 2150cd984fd5..0f31fc8889de 100644 --- a/packages/decap-cms-core/src/backend.ts +++ b/packages/decap-cms-core/src/backend.ts @@ -314,7 +314,12 @@ function i18nRulestring(ruleString: string, { defaultLocale, structure }: I18nIn if (structure === I18N_STRUCTURE.MULTIPLE_FOLDERS) { return `${defaultLocale}\\/${ruleString}`; } - return `${ruleString}\\.${defaultLocale}\\..*`; + + if (structure === I18N_STRUCTURE.MULTIPLE_FILES) { + return `${ruleString}\\.${defaultLocale}\\..*`; + } + + return ruleString; } function collectionRegex(collection: Collection): RegExp | undefined {