fix(webui): use proper 'size' abbreviations for vallis & deimos fish (#1804)
Closes #1763 Reviewed-on: #1804 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
a85539a686
commit
bb8596fa87
@ -115,6 +115,7 @@ const getItemListsController: RequestHandler = (req, response) => {
|
|||||||
let name = getString(item.name, lang);
|
let name = getString(item.name, lang);
|
||||||
if ("dissectionParts" in item) {
|
if ("dissectionParts" in item) {
|
||||||
name = getString("/Lotus/Language/Fish/FishDisplayName", lang).split("|FISH_NAME|").join(name);
|
name = getString("/Lotus/Language/Fish/FishDisplayName", lang).split("|FISH_NAME|").join(name);
|
||||||
|
if (item.syndicateTag == "CetusSyndicate") {
|
||||||
if (uniqueName.indexOf("Large") != -1) {
|
if (uniqueName.indexOf("Large") != -1) {
|
||||||
name = name.split("|FISH_SIZE|").join(getString("/Lotus/Language/Fish/FishSizeLargeAbbrev", lang));
|
name = name.split("|FISH_SIZE|").join(getString("/Lotus/Language/Fish/FishSizeLargeAbbrev", lang));
|
||||||
} else if (uniqueName.indexOf("Medium") != -1) {
|
} else if (uniqueName.indexOf("Medium") != -1) {
|
||||||
@ -122,6 +123,21 @@ const getItemListsController: RequestHandler = (req, response) => {
|
|||||||
} else {
|
} else {
|
||||||
name = name.split("|FISH_SIZE|").join(getString("/Lotus/Language/Fish/FishSizeSmallAbbrev", lang));
|
name = name.split("|FISH_SIZE|").join(getString("/Lotus/Language/Fish/FishSizeSmallAbbrev", lang));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (uniqueName.indexOf("Large") != -1) {
|
||||||
|
name = name
|
||||||
|
.split("|FISH_SIZE|")
|
||||||
|
.join(getString("/Lotus/Language/SolarisVenus/RobofishAgeCategoryElderAbbrev", lang));
|
||||||
|
} else if (uniqueName.indexOf("Medium") != -1) {
|
||||||
|
name = name
|
||||||
|
.split("|FISH_SIZE|")
|
||||||
|
.join(getString("/Lotus/Language/SolarisVenus/RobofishAgeCategoryMatureAbbrev", lang));
|
||||||
|
} else {
|
||||||
|
name = name
|
||||||
|
.split("|FISH_SIZE|")
|
||||||
|
.join(getString("/Lotus/Language/SolarisVenus/RobofishAgeCategoryYoungAbbrev", lang));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
name &&
|
name &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user