GetItemName

Parameters
whichItemitem
comment

Returns localized name of the item.

Example (Lua):

item = CreateItem(FourCC("war2"), 64, 128)
print(GetItemName(item)) --> Боевые барабаны орков (Orcs' battledrums)
async
This function is asynchronous. The values it returns are not guaranteed to be the same for each player. If you attempt to use it in an synchronous manner it may cause a desync.
note

See: GetUnitName, GetDestructableName, GetObjectName.

patch

1.13

Source
common.j (raise an issue to discuss on Github or submit a PR)
return type
string
Source code
constant native GetItemName     takes item whichItem returns string