👔 Set Site DefaultLanguage as Language for monolingual sites
This commit is contained in:
parent
2558a14d8c
commit
d623d3a60f
|
@ -33,6 +33,10 @@ func (ucase *siteUseCase) Do(ctx context.Context, lang domain.Language) (*domain
|
|||
}
|
||||
}
|
||||
|
||||
if !out.IsMultiLingual() {
|
||||
out.Language = out.DefaultLanguage
|
||||
}
|
||||
|
||||
sub, err := ucase.sites.Get(ctx, lang)
|
||||
if err != nil {
|
||||
return out, nil
|
||||
|
|
Loading…
Reference in New Issue