question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Waline doesn't translate to pt-BR

See original GitHub issue

Describe the bug 描述你遇到的错误

When using defaultContentLanguage = "pt-br" and languageCode = "pt-BR", the waline interface becomes chinese (chinese is the default language). Using ‘en’, instead, makes the whole site in english and the waline too. I can’t test if the language code has any kind of typo because the lang parameter from waline was removed from the config.toml. I would test if it works with pt-br, pt-BR, ptBR and ptbr. =/

Expected behavior 期待的行为

Waline server and DoIt theme’s waline client were updated to 1.3.9 with pt-BR translation and was expected to works

Build Environment 构建环境

  • Netlify: OS: [Ubuntu 21.04]
  • Theme version/commit [0a9470a]
  • Hugo version [0.81 extended]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Mister-Hopecommented, Sep 29, 2021

I see your problems, you are receveing rss starded code from Hugo, and that is set by user, right?

I think it’s possible for you to write a transform function here to support Waline, but yes, it’s much more easier if waline can native support rss langcode.

1reaction
dannyloxaviercommented, Sep 29, 2021

You are the best! Thank you!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Translate
No information is available for this page.
Read more >
PT_BR Translation won't apply - Codecademy Forums
Hi there, for some time now the portuguese translation is not applying to any course. I understand not everything is translated, ...
Read more >
English ↔ Portuguese (Portugal) Translator with EXAMPLES
Translator. Translate your text for free. Over 30 languages available, including English, French, Spanish, German, Italian, Portuguese, Chinese and Hindi.
Read more >
PageTranslate - Extensions - LibreOffice
LibreOffice plugin for translating whole documents, which retains some formatting. ... which kinda makes PT hard to find - hence not even worth...
Read more >
Why does Google Translate only translate to Brazilian ... - Quora
As there is no option to select PT-BR or PT-PT, the translated text will ... Google translate also doesn't differentiate between different variants...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found