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.

Incorrect warnings around fallback

See original GitHub issue

vue & vue-i18n version

  • vue: 3.0.5
  • vue-i18n: 9.0.0

What is Expected?

The docs have an example of using both local and global translations in a component. It notes that:

And also, as explained the here, note that, by default, falling back to global scope generates two warnings in the console:

[intlify] Not found 'message.greeting' key in 'ja' locale messages.
[intlify] Fall back to translate 'message.greeting' with root locale.

It also states that

To suppress these warnings (while keeping those which warn of the total absence of translation for the given key) set silentTranslationWarn: true, and silentFallbackWarn: true when initializing the createI18n.

What is actually happening?

Instead what I’m seeing is only one warning

[intlify] Not found 'message.greeting' key in 'ja' locale messages.

When I add only silentFallbackWarn: true, there is no difference. And if I add silentTranslationWarn: true (with and without silentFallbackWarn), it silences all missing translation warnings, even those where it couldn’t find it in the global messages.

Are the docs out of date or is this a bug?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
Grawlcommented, Oct 15, 2021

just installed version 9.2.0-beta.12 with yarn add vue-i18n@next, and issue is fixed with fallbackWarn: false

but now I have [intlify] Not supported 'preserve'. warning

2reactions
kazuponcommented, Mar 3, 2021

I’ve fixed at #374

Read more comments on GitHub >

github_iconTop Results From Across the Web

ANDI - Alerts
When ANDI is launched, it automatically analyzes every HTML element currently on the page looking for conditions that cause accessibility issues.
Read more >
Error Boundaries - React
Error boundaries are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI ......
Read more >
Update enables SSL 3.0 fallback warnings in Internet Explorer ...
This update enables SSL 3.0 fallback warnings to be displayed when a connection in Internet Explorer insecurely falls back from TLS 1.0 or...
Read more >
Error handling in Step Functions - AWS Documentation
A retrier's parameters apply across all visits to the retrier in the context ... catches the error and the state machine transitions to...
Read more >
Configuration options | Yarn - Package Manager
If false, Yarn will never make any request to the network by itself, ... Can be one of info , warning , error...
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