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.

Hi, is there a suitable reason why the returning value of MissingHandler is ignored in the _warnDefault-function and not returned?

For example we have a array with system data merged with user data. The system data is defined in the code/DB and the user data were created by the user. The translation of the system data is stored in a subarray of all translations. So we have to use a key path to translate the messages. e.q.:

types = [system messages + user messages]
for type in types
   <p>$t('event.types.' + type)</p>

The translation of the user data (no translations available) are causing the expected warning and the translator is printing the key path like event.types.testType out. Now it were be nice to transform the key or do other cool stuff… which can handle the MissingHandler.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
kazuponcommented, Mar 13, 2018

implemented with https://github.com/kazupon/vue-i18n/pull/256 please wait next version releasing.

1reaction
fraczcommented, Feb 28, 2018

+1

IMO, the MissingHandler should be able to return the value that should be used as a translation. Currently the missing config option cannot be used to solve the situation when the translation is missing for whatever reason.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when trying to translate in the missing handler #1428
Reporting a bug? I try to translate a key through the MissingHandler with vuei18n, but I get the following error: vm.$t is not...
Read more >
Config Options | Transloco Angular i18n - GitHub Pages
missingHandler.useFallbackTranslation ​. Whether to use the fallback language for missing keys or values: (defaults to false ). translocoConfig({
Read more >
CWE-431: Missing Handler (4.9) - MITRE
When an exception is thrown and not caught, the process has given up an opportunity to decide if a given failure or event...
Read more >
The Missing Handler - Wowpedia - Fandom
I just received word from Warbeast Kraal dat one of their handlers is missing. Dis is not usually a problem, but dey are...
Read more >
Missing "handler" property in function - Seed.run
Problem. Each Lambda function needs to have a handler property pointing to the location of the handler function. In this case, Serverless Framework...
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