panr / hugo-theme-terminal

A simple, retro theme for Hugo
MIT License
1.97k stars 737 forks source link

Feature Request: i18n support #477

Open scholar7r opened 1 week ago

scholar7r commented 1 week ago

Terminal theme is really good, but i18n can make this theme more popular.

Yes! We need i18n!

panr commented 1 week ago

Hey, @scholar7r! i18n is supported since it's Hugo's "native" feature. If you mean that I should replace language variables from config file, then yes. I should, and will soon ;-)

scholar7r commented 1 week ago

Oops...

I was trying to find out i18n folder but got nothing here. So I didn't check the configuration file.

It's really a cool theme that I have seen. When I have time I have to make it as my hugo site theme.

sardarms commented 1 day ago

@panr regarding the i18n support, what I have realised is that stating language does not change the date in the local language. For that I have to change the following code:

{{- .Date.Format "2006-01-02" -}}

into this code:

{{- .Date | time.Format ":date_medium" -}}

I have to do this everywhere i.e. list, default, terms, etc.

For reference you can see it here - https://gohugo.io/content-management/multilingual/#dates

Can you please take a look and update the files if required?