nicksnyder / go-i18n

Translate your Go program into multiple languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[example] simulate Hugo i18n shortcode

CarsonSlovoka opened this issue · comments

What is Hugo i18n shortcode

https://gohugo.io/functions/i18n/

What do I want?

I want to provide an example that is similar to Hugo.i18n too.

Actually, I'm not sure what exactly the implemented way that Hugo does.

but I think it can inspire.

Related issue

  • #27 (comment)

    It mentions

    "T": i18n.IdentityTfunc

    In fact, this is what I want, but I can't find where i18n.IdentityTfuncis. (even reading #92 after(maybe I am missing something.)