diff --git a/tools/scripts/release/TranslationChangelog.utils.ts b/tools/scripts/release/TranslationChangelog.utils.ts index af4f04f9..8237ddd4 100644 --- a/tools/scripts/release/TranslationChangelog.utils.ts +++ b/tools/scripts/release/TranslationChangelog.utils.ts @@ -176,7 +176,11 @@ const getLanguageLinesFromChangelog = (): Promise => { return; } - if (isTranslationSection && line.toLowerCase() === '## Full Changelog'.toLowerCase()) { + const isStartOfRemovedLanguages = line.toLowerCase().startsWith('### Removed'.toLowerCase()); + const isStartOfFullChangelog = line.toLowerCase() === '## Full Changelog'.toLowerCase(); + const isEndOfLanguageSection = isStartOfRemovedLanguages || isStartOfFullChangelog; + + if (isEndOfLanguageSection) { isTranslationSection = false; return; }