My site has 4 languages, works perfectly, I have all translations fine and lang logic is perfect.
It relies on:
- i18n.fr/en/de/it.yaml
- content/fr/en/de/it/
- menus.fr/en/de/it.toml
- params.fe/en/de/it.toml
- data/fr/en/de/it/xxx.yaml
Before going to production, I decided to double check doing `hugo hugo --cleanDestinationDir --printI18nWarnings`.
And surprisingly I get a lot of WARN.
It seems there are of 2 sorts:
-
Some looks like a variable (search_no_result). I do not have this variable on web part or themes folder (I do have some external modules loaded)
-
and all FM variable named `meta_title`. Looks like all of them are reported as WARN. But all those FM `meta_title` have values.
```text
WARN i18n|MISSING_TRANSLATION|fr|search_no_results
WARN i18n|MISSING_TRANSLATION|en|search_no_results
WARN i18n|MISSING_TRANSLATION|de|search_no_results
WARN i18n|MISSING_TRANSLATION|it|search_no_resultsWARN i18n|MISSING_TRANSLATION|fr|pour nous contacter
ou juste nous dire bonjour !
WARN i18n|MISSING_TRANSLATION|en|contact us
or simply say hello!
WARN i18n|MISSING_TRANSLATION|de|kontaktieren sie uns
oder sagen sie einfach hallo!
WARN i18n|MISSING_TRANSLATION|it|contattateci
o semplicemente venite a salutarci!WARN i18n|MISSING_TRANSLATION|fr|cuisine 100% authentique
WARN i18n|MISSING_TRANSLATION|en|100% authentic cuisine
WARN i18n|MISSING_TRANSLATION|de|100% authentische küche
WARN i18n|MISSING_TRANSLATION|it|cucina 100% autenticaand so on.
```
If i understand that the external modules can be the cause for variable `search_no_results`, even if i am not using it at the mloment in my code (I will investigate this one), I am really puzzled by the warning on my FM variable.
The template calling `meta_title` is something simple:
` {{ partial “page-header” (dict “Context” . “Title” .Params.meta_title ) }}`
and page header is also a simple one:
{{ $context := .Context }}
<h1>
{{ i18n (printf "%s" (lower $context.Title)) | default $context.Title | title | markdownify }}
</h1>
{{ i18n "nb_people" }}
{{ i18n "people_from" }}
{{ i18n "people_to" }}
{{ $context.Description | markdownify }}
I get the same errors even if I replace the H1 by
{{ $context.Title | markdownify }}
```