I think your problem is here
'van_1',
'van',
'van',
];
Yah, I want to add more type to category, so I try van_1, it will blank in the drop-down list but the other 2 'van' it still appear the lable
I think the problem is I didn't change any thing in l10n code, but I don't know how to deal with it
I saw that file . But I don't see any 'categoryVan' appear all over the project so I still don't know how to deal with it.
Maybe if I add more like
"categoryVan1": "Van_1", should it work ??
I share with you code snippets from each file I modified
deviceCategories.js
export default [
'van',
preloadImages.js
import vanSvg from '../../resources/images/icon/van.svg';
export const mapIcons = {
van: vanSvg,
en.json
"categoryVan": "Van",
I changed the label of Category in deviceCategories.js
export default [ 'default', 'animal', 'bicycle', 'boat', 'bus', 'car', 'camper', 'crane', 'helicopter', 'motorcycle', 'offroad', 'person', 'pickup', 'plane', 'ship', 'tractor', 'train', 'tram', 'trolleybus', 'truck', 'van', 'scooter', 'van_1', 'van', 'van', ];
When I rebuild the web app, it doesn''t appear the "van_1'' in the list (i mean when i choose from dropdownlist, the row is blank.
I have arleady modify code in preloadImages.js like this
import vanSvg1 from '../../resources/images/icon/van1.svg'; import vanSvg2 from '../../resources/images/icon/van2.svg'; import vanSvg3 from '../../resources/images/icon/van3.svg'; export const mapIcons = { animal: animalSvg, bicycle: bicycleSvg, boat: boatSvg, bus: busSvg, car: carSvg, camper: camperSvg, crane: craneSvg, default: defaultSvg, helicopter: helicopterSvg, motorcycle: motorcycleSvg, offroad: offroadSvg, person: personSvg, pickup: pickupSvg, plane: planeSvg, scooter: scooterSvg, ship: shipSvg, tractor: tractorSvg, train: trainSvg, tram: tramSvg, trolleybus: trolleybusSvg, truck: truckSvg, van: vanSvg, van1: vanSvg1, van2: vanSvg2, van3: vanSvg3, };
sure i have arealdy have vanSvg1.svg in the '../../resources/images/icon/van1.svg';
thanks for help