diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go index aa43d541a93..d327a7064cc 100644 --- a/hugolib/hugo_sites_build.go +++ b/hugolib/hugo_sites_build.go @@ -788,6 +788,8 @@ func (h *HugoSites) processPartial(ctx context.Context, l logg.LevelLogger, conf changes = append(changes, siteidentities.Data) h.init.data.Reset() case files.ComponentFolderI18n: + // TODO(bep) we should split this, but currently the loading of i18n and layout files are tied together. See #12048. + h.init.layouts.Reset() logger.Println("i18n changed", pathInfo.Path()) i18nChanged = true // It's hard to determine the exact change set of this,