Multi-lingual menu

Is this a good solution?

Skip the check of the selector type, and just check for the componentID, and assign its value to a variable:

//componentID is Beaded in this example
var beadedText = “”;
if (selector === “Beaded”){ beadedText = item[lang]; }

then use the variable when pushing items into the Gallery