Handle "removed languages" section in changelog

This commit is contained in:
schroda
2025-04-07 00:07:12 +02:00
parent 772f7383e8
commit 52e1730261

View File

@@ -176,7 +176,11 @@ const getLanguageLinesFromChangelog = (): Promise<string[]> => {
return; 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; isTranslationSection = false;
return; return;
} }