Language selector for items in webui #407

Closed
AMelonInsideLemon wants to merge 5 commits from webui-lang into main
Showing only changes of commit 374cc98248 - Show all commits

View File

@ -19,7 +19,7 @@ interface ListedItem {
const getItemListsController: RequestHandler = (req, res) => { const getItemListsController: RequestHandler = (req, res) => {
const weapons = []; const weapons = [];
const miscitems = []; const miscitems = [];
const dict = getDict(req.query.dict?.toString()); const dict = getDict(req.query.lang?.toString());
for (const [uniqueName, item] of Object.entries(ExportWeapons)) { for (const [uniqueName, item] of Object.entries(ExportWeapons)) {
if (item.productCategory !== "OperatorAmps") { if (item.productCategory !== "OperatorAmps") {
if (item.totalDamage !== 0) { if (item.totalDamage !== 0) {