Root site collection of SharePoint online is not accessing language file

%3CLINGO-SUB%20id%3D%22lingo-sub-1777083%22%20slang%3D%22en-US%22%3ERoot%20site%20collection%20of%20SharePoint%20online%20is%20not%20accessing%20language%20file%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1777083%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20developed%20front-end%20of%20application%20is%20in%20Angular%206%20and%20I%20have%20used%20multilingual%20file(with%20ngx%20translate%20library%20of%20angular).%20I%20have%20configured%20application%20with%20SharePoint%20Online.%26nbsp%3B%3CBR%20%2F%3EIts%20accessing%20language%20file%20in%20all%20site%20collections%20but%20in%20root%20site%20collection%20its%20throwing%20error%20I%20have%20given%20path%20of%20application%20in%20Element.XML%20and%20also%20included%20file%20in%20project%20but%20it%20says%20404%20error.%20It%20goes%20on%20wrong%20path%20only%20in%20root%20site%20collection.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPath%20which%20I%20gave%20in%20Element.xml%3C%2FP%3E%3CP%3E%3CFILE%20path%3D%22%26quot%3BScripts%5Cdist%5Cassets%5Ci18n%5Cen.txt%26quot%3B%22%20url%3D%22%26quot%3BScripts%2Fdist%2Fassets%2Fi18n%2Fen-Legal.txt%26quot%3B%22%20replacecontent%3D%22%26quot%3BTRUE%26quot%3B%22%3E%3C%2FFILE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F226440iEEDE0C98E43DA65C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1777083%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApp%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Visitor

I have developed front-end of application is in Angular 6 and I have used multilingual file(with ngx translate library of angular). I have configured application with SharePoint Online. 
Its accessing language file in all site collections but in root site collection its throwing error I have given path of application in Element.XML and also included file in project but it says 404 error. It goes on wrong path only in root site collection.

 

Path which I gave in Element.xml

<File Path="Scripts\dist\assets\i18n\en.txt" Url="Scripts/dist/assets/i18n/en-Legal.txt" ReplaceContent="TRUE" />

 

image.png

0 Replies