I set enableMissingTranslationPlaceholders to true in config.
There is a dozen of languages (content dir per language). Two of the languages are translated in i18n files. Other languages are not.
What I expect to see is some placeholders in places with missing translations. Instead, I see only English (default language) in all other pages (Portuguese, German, etc.). If I add translation, I see the translation correctly.
Is there something else I need to do with enableMissingTranslationPlaceholders setting? Is my understanding of the setting incorrect?
Hugo Static Site Generator v0.48/extended darwin/amd64 BuildDate: unknown
GOOS=“darwin”
GOARCH=“amd64”
GOVERSION=“go1.11”
I have those language sections (they contain links to Static folders and Menu). Or do you suggest to add enableMissingTranslationPlaceholders settings inside those language sections?
Thank you @RickCogley! I think you helped me out here.
–i18n-warnings is useful. It showed zero warnings. Before it helped me to see the wrong id I used for the translation. It was missing in i18n files. After that it showed 0 warnings.
I18N folder contained only two complete translations (en.yaml and fr.yaml). Then I added one empty language file (Portuguese, pt.yaml). I guessed the setting to show placeholders may work only if the actual file is there. But it still showed 0 warnings. Maybe it was some cache issue or something else, even though I carefully try using empty cache browser and restart the server regularly.
Now it shows place holders for Portuguese, and it also prints warnings for Portuguese as well. The issue was to have pt.yaml file (and for other languages in I18N folder). The issue is resolved.