tomfran / typo

A simple Hugo theme
https://tomfran.github.io/
MIT License
160 stars 48 forks source link

Translation for static text #9

Open tomfran opened 1 month ago

tomfran commented 1 month ago

Motivation

As of now, all the static text in the theme is in English. Having different translations would be better for non-english websites.

The static text include:

Wanted result

I don't like the idea of a translation menu for Typo, but I want people to be able to specify a language in their config to use.

The expected result would be something like:

hugo.toml

[params]
language = 'en | it | de | ...'

With the website using the appropriate strings for this set language.

Ref: https://gohugo.io/content-management/multilingual/

kyagi commented 1 month ago

If you need a Japanese translation, it will be

Have a nice day! :-)

zeeshanthedev590 commented 1 month ago

so basically there should be a way to translate the text , given that the developer writes it in english?