Ngx-translate无法翻译所有密钥

问题描述 投票:1回答:1

翻译失败了一些单词(找到至少2个不起作用的键 - 'Home'和'Currency')。有趣的是翻译有效,但不是所有项目......

我检查了文件,没有找到上面提到的那两个项目的重复项

家庭和货币不起作用。 EN json:{ "Dashboard": "Dashboard", "Sellers": "Sellers", "Products": "Products", "VAT": "VAT", "ProductCategory": "Product Categories", "ProductDispatch": "Product Dispatch", "ProductDispatchSellers": "Product Dispatch Sellers", "MeasurementUnits": "Measurement Units", "ProductsMasterData": "Products Master Data", "ConsignationProducts": "Consignation Products", "Documents": "Documents", "Orders": "Orders", "Invoices": "Invoices", "Cashings": "Cashings", "Customers": "Customers", "CustomerOffices": "Customer Offices", "PriceLists": "Price Lists", "Currencies": "Currencies", "CustomerCategories": "Customer Categories", "Routes": "Routes", "SalePromotions": "Sale Promotions", "Trucks": "Trucks", "TruckStocks": "Truck Stocks", "Storages": "Storages", "Calendar": "Calendar", "Consignation": "Consignation", "SalesByAgents": "Sales By Agents", "SalesByClients": "Sales By Clients", "SalesByRegion": "Sales By Region", "TransactionSales": "Transaction Sales", "Expenses": "Expenses", "Surveys": "Surveys", "Designer": "Designer", "TakeSurvey": "Take Survey", "ViewAnswers": "View Answers", "Messages": "Messages", "SendMessages": "Send Messages", "MessageLists": "Message Lists", "Activities": "Activities", "Target": "Target", "ClientActivities": "Client Activities", "Admin": "Admin", "Users": "Users", "Roles": "Roles", "XMLLayout": "XML Layout", "Reports": "Reports", "Settings": "Settings", "Add new record": "Add new record", "Add user": "Add user", "Add role": "Add role", "Login": "Login", "Password": "Password", "Confirm": "Confirm", "Person": "Person", "Role": "Role", "Save": "Save", "Close": "Close", "Info": "Info", "Success": "Success", "Warning": "Warning", "Error": "Error", "msgFillMandatory": "Please fill the mandatory fields", "Home": "Home", "Currency": "Currency" }

RO json:{ "Dashboard": "Panou de bord", "Sellers": "Agenti", "Products": "Produse", "VAT": "TVA", "ProductCategory": "Categorii produse", "ProductDispatch": "Livrare produse", "ProductDispatchSellers": "Livrare produse vanzatori", "MeasurementUnits": "Unitati de masura", "ProductsMasterData": "Produse", "ConsignationProducts": "Produse de consignatie", "Documents": "Documente", "Orders": "Comenzi", "Invoices": "Facturi", "Cashings": "Incasari", "Customers": "Clienti", "CustomerOffices": "Sedii clienti", "PriceLists": "Liste de preturi", "Currencies": "Valute", "CustomerCategories": "Categorii de clienti", "Routes": "Rute", "SalePromotions": "Promotii", "Trucks": "Vehicule", "TruckStocks": "Stoc vehicule", "Storages": "Gestiuni", "Calendar": "Calendar", "Consignation": "Consignatii", "SalesByAgents": "Vanzari agenti", "SalesByClients": "Vanzari clienti", "SalesByRegion": "Vanzari regiuni", "TransactionSales": "Tranzactii vanzari", "Expenses": "Cheltuieli", "Surveys": "Sondaje", "Designer": "Designer", "TakeSurvey": "Completare sondaj", "ViewAnswers": "Vizualizare raspuns", "Messages": "Mesaje", "SendMessages": "Trimitere mesaj", "MessageLists": "Liste mesaje", "Activities": "Activitati", "Target": "Target", "ClientActivities": "Activitati la clienti", "Admin": "Admin", "Users": "Useri", "Roles": "Roluri", "XMLLayout": "XML Layout", "Reports": "Rapoarte", "Settings": "Setari", "Add new record": "Adauga inregistrare noua", "Add user": "Adaugare utilizator", "Add role": "Adaugare rol", "Login": "Login", "Password": "Parola", "Confirm": "Confirmare", "Person": "Persoana", "Role": "Rol", "Save": "Salveaza", "Close": "Inchide", "Info": "Info", "Success": "Succes", "Warning": "Avertizare", "Error": "Eroare", "msgFillMandatory": "Completati campurile obligatorii", "Home": "Acasa", "Currency": "Valuta" }

html部分是:<div class="title-div"> <label translate>Currency</label> </div>

还有:<div class="breadcrumb-div"> <mat-icon>home</mat-icon> <label>{{'Home' | translate:param }}</label> </div>

angular angular7 ngx-translate
1个回答
0
投票

显然这个问题是由于旧版本的翻译jsons缓存在我的Angular项目的dist文件夹中。一旦我删除它一切都很好。

© www.soinside.com 2019 - 2024. All rights reserved.