You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
Cannot able to load .xlf file with systemjs-text-plugin.js #50
@aluanhaddad If I use similar as above I'm getting Errors - cannot find module './xml-localisation-interchange-file-format.xlf' or cannot find module './xml-localisation-interchange-file-format.xlf!text'
I have found the rootcause for this problem System.import(variable) is not able to load file whereas System.import("./i18n/messages.es.xlf!text")(Hardcoding file name) works perfect. But what is the reason for System.import not accepting an expression or a variable?
Activity
aluanhaddad commentedon Sep 25, 2017
I cannot reproduce this, it loads such files just fine
Here is what I used:
It also works fine via meta config:
and then in
app.jsI used the example from the Wikipedia article on the XLIFF XML dialect as a reference document.
divyameher commentedon Sep 26, 2017
@aluanhaddad If I use similar as above I'm getting Errors - cannot find module './xml-localisation-interchange-file-format.xlf' or cannot find module './xml-localisation-interchange-file-format.xlf!text'
divyameher commentedon Sep 26, 2017
I have found the rootcause for this problem System.import(variable) is not able to load file whereas System.import("./i18n/messages.es.xlf!text")(Hardcoding file name) works perfect. But what is the reason for System.import not accepting an expression or a variable?
aluanhaddad commentedon Oct 4, 2017
@divyameher I do not understand the screenshot. TypeScript compile time errors are a separate and resolved matter (use
declare module "*.xlf";).Also, you can pass an expression to
System.import. Can you add a sample of code that demonstrates the error.