-
-
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
Failed to get translated string for language "art-x-language" #7838
Comments
Maybe this is related to #7822 ? |
this is only the case for the "artifical" languages we use. In our case at, com, cz, and test. Renaming _index.cz.md to _index.cs.md and changing the configs rermoved the above mentioned error. So it seems to be related how hugo (go) handles the custom languages. Did some additional digging: |
I will have a look at this soonish, but today I'm busy busy with other things. This i18n upgrade from v1 to v2 was certainly more painful than I expected, but hopefully it's worth it. |
I'm having the same issue, had to downgrade to 0.75, but was unable to reproduce outside of CI - worked fine locally. |
...same thing here, confirmed for 7.6.5 - not a dealbreaker, since page renders fine, nevertheless a bit concerning. |
confirmed for version 7.7. |
I got the warning locally again when I just ran it with Hugo Static Site Generator v0.78.0/extended darwin/amd64 |
Does anyone have a minimal reproducible example of this with v0.82 or later? |
Sent a minimal sample to reproduce this via PM. |
@dbelcher Thank you. Minimal reproducible example... The git clone --single-branch -b hugo-github-issue-7838 https://github.com/jmooring/hugo-testing hugo-github-issue-7838
cd hugo-github-issue-7838
hugo server Results:
Now comment out the Japanese and Korean sections in
Now do this: rm i18n/jp.toml i18n/kr.toml
hugo No warnings. I don't understand. |
I've experienced the same issue with latest version |
This fixes a bug upstream by temporarily using a patched version of go-i18n. Closes gohugoio#7838
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 and also with version 0.76.4.
It doesn't happen with version 0.74.0
Problem
We are getting a long list of warning for like this for all our languages ("de","fr","es","it","nl","fr-be","nl-be", "pl", "bg", "ro", "hu", "cz","com","at"), that causes our build pipelines buffer to exceed it's limits:
16:12:12 WARN 2020/10/15 14:12:12 Failed to get translated string for language "art-x-cz" and ID "ratings": %!s()
16:12:12 WARN 2020/10/15 14:12:12 Failed to get translated string for language "art-x-cz" and ID "showmore": %!s()
16:12:12 WARN 2020/10/15 14:12:12 Failed to get translated string for language "art-x-cz" and ID "techdata": %!s()
16:12:12 WARN 2020/10/15 14:12:12 Failed to get translated string for language "art-x-cz" and ID "defaultHeadline": %!s()
16:12:12 WARN 2020/10/15 14:12:12 Failed to get translated string for language "art-x-cz" and ID "showmore": %!s()
16:12:12 WARN 2020/10/15 14:12:12 Failed to get translated string for language "art-x-cz" and ID "homepage": %!s()
16:12:12 WARN 2020/10/15 14:12:12 Failed to get translated string for language "art-x-cz" and ID "Modelle": %!s()
16:12:12 WARN 2020/10/15 14:12:12 Failed to get translated string for language "art-x-cz" and ID "techdata": %!s()
16:12:12 WARN 2020/10/15 14:12:12 Failed to get translated string for language "art-x-cz" and ID "showmore": %!s()
16:12:12 WARN 2020/10/15 14:12:12 Failed to get translated string for language "art-x-cz" and ID "introtext": %!s()
16:12:12 WARN 2020
16:12:12
16:12:12 Build failed: RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded
There is no trace of any language "art-x-cz or similiar in our codebase.
Could you please look into this?
Thanks a lot for your support
The text was updated successfully, but these errors were encountered: