Skip to main content
Deno 2 is finally here 🎉️
Learn more
method CustomItemService.prototype.addToLocaleDbs
import { CustomItemService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";

Iterate through the passed in locale data and add to each locale in turn If data is not provided for each langauge eft uses, the first object will be used in its place e.g. en[0] fr[1]

No jp provided, so english will be used as a substitute

Parameters

localeDetails: Record<string, LocaleDetails>

key is language, value are the new locale details

newItemId: string

id of the item being created