-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wordCount and readingTime doesn't work when defaultContentLanguage is set to pl #7590
Comments
@lszczygielek which theme do you use? I thinkt it's more related to the translation files. Does the |
@Lednerb, yes I have i18n/pl.toml. |
Issue still present in version:
|
TLDR
This generates two warnings:
But the values are correct (http://localhost:1313/post/test). Now add one word of content, because content/post/test.md has nothing beneath the front matter:
This generates no warnings, and the values are correct (http://localhost:1313/post/test). Now add one more word of content
This generates one warning:
But the values are correct (http://localhost:1313/post/test). The warnings occur because the CLDR plural rules for Polish specify the following cardinal categories: one, few, many, and other. The More information about the warnings here: gohugoio/hugoDocs#1410 (comment). |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
I'm creating site in Polish. In my
config.toml
I have:For now I resign from multi-language support and I discovered that reading time and word counting doesn't work in single.html. I've done some testing and I found:
defaultContentLanguage
, then I see calculation of reading time and word counting, but I need to use en.toml in i18n with polish to translate template - withoutdefaultContentLanguage
en
is chosen.Repository with issue: https://github.com/lszczygielek/Hugo-WordCount-ReadingTime-Issue
The text was updated successfully, but these errors were encountered: