This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Sanitation strategy sce fails with fallback language #1618
Comments
Hm, did you have missed saving something in the demo? I guess, at least there is one missing file (angular-sanitize). |
Sorry the translation had to be done via filters in order to get the error, I updated the plnkr: |
Ok, demo working! Well, looks like sce does not working together with the linking feature (string based). |
@knalli are you planning on creating a fix for this? If so, when will it be released you think? |
@MarijnMensinga It will take some days. If you can make a PR fixing the issue, it will faster. |
4 tasks
I've created a PR #1630 |
Fix: 1ede55e |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Sanitation strategy
sce
fails with fallback languageWhen using a fallback language in conjuction with the sanitation strategy
sce
a type error is thrown when the string to translate is only available in the fallback language file.Demo: https://plnkr.co/edit/iWdsq62cnGAY3mdN3aTM?p=preview
The
fallbackTranslationInstant
function expects a string as result but it gets aTrustedValueHolderType
object.Your environment
Steps to reproduce
sce
Demo: https://plnkr.co/edit/iWdsq62cnGAY3mdN3aTM?p=preview
Expected behaviour
Everything should be nicely translated
Actual behaviour
TypeError:
TrustedValueHolderType
object instead of expectedstring
The text was updated successfully, but these errors were encountered: