Closed amirduran closed 6 years ago
Try with something that would actually be a valid json property, like hallo_yeah
.
@amirduran make sure that you are using missing trans. handler in right module
Hello, I'm closing this issue because it's too old. If you have a similar problem with recent version of the library, please open a new issue.
I'm submitting a ... (check one with "x")
Current behavior MissingTranslationHandler is never called even though the translation doesn't exist
Expected/desired behavior MyCustomMissingTranslationHandler should be called when translation doesn't exist in translation JSON array.
Reproduction of the problem First I implemented my custom MissingTranslationHandler
In my main AppModule I have registered missingTranslation handler like this:
In my template file I want to translate the string which doesn't exist:
{{"halllou yeah" | translate}}
Console logs in MyCustomMissingTranslationHandler are never printed in console.
What is the expected behavior? Console logs from my MyCustomMissingTranslationHandler should be printed in console
What is the motivation / use case for changing the behavior? We could easily extend MissingTranslationHandler to send and API request every time when we encounter untranslated word.
Please tell us about your environment:
ngx-translate version: >=4.0.0 <5.0.0
Angular version: 2.x.x
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]