0
我正在開發一個aspnetboilerplate Angular 4項目,我想替換RTL語言的css文件。aspnetboilerplate用於RTL語言的角度Cli開關css
如果由於Angular Cli生成靜態頁面而無法實現,請告訴我如何根據當前的語言爲RTL語言選擇不同的index.html文件(假設爲index-ar.html)在下面的代碼:
app.Use(async (context, next) =>
{
await next();
if (context.Response.StatusCode == 404
&& !Path.HasExtension(context.Request.Path.Value))
{
context.Request.Path = "/index.html";
await next();
}
});
在上面的代碼,它總是選擇index.html的,所以我要檢查當前的語言和希望的路徑設置爲「索引rtl.html」。