MissingHandler
See original GitHub issueHi,
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:
- Created 6 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
implemented with https://github.com/kazupon/vue-i18n/pull/256 please wait next version releasing.
+1
IMO, the
MissingHandler
should be able to return the value that should be used as a translation. Currently themissing
config option cannot be used to solve the situation when the translation is missing for whatever reason.