Skip to content

Commit

Permalink
Fix server panic on i18n file change
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Feb 17, 2024
1 parent 68f67c9 commit 47b2ad3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hugolib/hugo_sites_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 47b2ad3

Please sign in to comment.