You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hugo supports localize time and dates since v0.87.0, but I'm stuck by specifying the language key that not defined in https://github.com/gohugoio/locales.
For example:
[zh_hans] # localization works as expected.languageName = "zh_hans"
[zh-cn]
languageName = "zh-cn"locale = "zh_hans"# additional parameter to match the locale
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
jmooring
changed the title
Localization: allow to match locale with an additional parameter instead of the language key.
Use Language.LanguageCode as localization key, falling back to language.Lang
May 1, 2024
Hugo supports localize time and dates since v0.87.0, but I'm stuck by specifying the language key that not defined in https://github.com/gohugoio/locales.
For example:
The text was updated successfully, but these errors were encountered: