Is this still the way to translate 404 pages?
In addition, can the 404 pages be used locally? Right now I see a blank white screen on local server.
Is this still the way to translate 404 pages?
In addition, can the 404 pages be used locally? Right now I see a blank white screen on local server.
Hugo version?
I was using version 0.89 (to test my custom theme). I have downloaded the latest version and the 404 page works now.
How about this?
You cannot create language-specific 404 templates, so use these within the template:
{{ T "key" }}
or {{ i18n "key" }}
Or if you need pluralization:
{{ T "key" 42 }}
or {{ i18n "key" 42 }}
This sounds easier to implement.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.