某些单词的翻译失败(找到至少两个不起作用的键-“ 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>
答案 0 :(得分:0)
显然,此问题是由于翻译json的旧版本缓存在我的Angular项目的dist文件夹中引起的。 删除后,一切正常。