mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-11 18:26:04 +00:00
fixed error in different localization (#312)
This commit is contained in:
@@ -32,7 +32,12 @@ export function parseFormatOneLine(line: string): StructureItem | null {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rawTypeName != STRUCTURE_TYPE_MAP[rawTypeId]) {
|
// in some localizations (like russian) there is an option called "mark names with *"
|
||||||
|
// The example output will be "35826 Itamo - Research & Production Azbel* 609 м"
|
||||||
|
// so, let's fix this
|
||||||
|
const localizationFixedName = rawTypeName.replace("*", "");
|
||||||
|
|
||||||
|
if (localizationFixedName != STRUCTURE_TYPE_MAP[rawTypeId]) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user