Fix i18n rebuild regression

Fixes #12039
This commit is contained in:
Bjørn Erik Pedersen
2024-02-16 13:41:59 +01:00
parent 639073e4fe
commit f1491c900e
2 changed files with 25 additions and 1 deletions

View File

@@ -790,7 +790,9 @@ func (h *HugoSites) processPartial(ctx context.Context, l logg.LevelLogger, conf
case files.ComponentFolderI18n:
logger.Println("i18n changed", pathInfo.Path())
i18nChanged = true
changes = append(changes, pathInfo)
// It's hard to determine the exact change set of this,
// so be very coarse grained for now.
changes = append(changes, identity.GenghisKhan)
default:
panic(fmt.Sprintf("unknown component: %q", pathInfo.Component()))
}