fix: add typing for locales
This commit is contained in:
parent
603a77abcb
commit
0cd6b78504
@ -12,6 +12,7 @@ import { ITraderAssort, ITraderBase } from "@spt-aki/models/eft/common/tables/IT
|
|||||||
import { ITraderConfig, UpdateTime } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig, UpdateTime } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
||||||
import { Item } from "@spt-aki/models/eft/common/tables/IItem";
|
import { Item } from "@spt-aki/models/eft/common/tables/IItem";
|
||||||
|
import { ILocaleGlobalBase } from "@spt-aki/models/spt/server/ILocaleBase";
|
||||||
|
|
||||||
// The new trader config
|
// The new trader config
|
||||||
import * as baseJson from "../db/base.json";
|
import * as baseJson from "../db/base.json";
|
||||||
@ -53,7 +54,7 @@ class SampleTrader implements IMod {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// For each language, add locale for the new trader
|
// For each language, add locale for the new trader
|
||||||
const locales = Object.values(tables.locales.global);
|
const locales = Object.values(tables.locales.global) as ILocaleGlobalBase[];
|
||||||
for (const locale of locales) {
|
for (const locale of locales) {
|
||||||
locale.trading[baseJson._id] = {
|
locale.trading[baseJson._id] = {
|
||||||
FullName: baseJson.name,
|
FullName: baseJson.name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user