This commit is contained in:
xkeyC 2023-10-14 20:36:42 +08:00
parent c75e6e22e3
commit 974f196869
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ function GetSCLocalizationTranslateString(txtSrc) {
}
});
txtSrc = nodeValue
} else if (key.includes("starter pack") || key.includes("starter package")) {
} else if (key.endsWith("starter pack") || key.endsWith("starter package")) {
let shipName = key.replace("starter package", "").replace("starter pack", "").trim()
if (SCLocalizationReplaceLocalesMap[shipName.toLowerCase()]) {
shipName = SCLocalizationReplaceLocalesMap[shipName.toLowerCase()];

View File

@ -152,7 +152,7 @@ function GetSCLocalizationTranslateString(txtSrc) {
}
});
txtSrc = nodeValue
} else if (key.includes("starter pack") || key.includes("starter package")) {
} else if (key.endsWith("starter pack") || key.endsWith("starter package")) {
let shipName = key.replace("starter package", "").replace("starter pack", "").trim()
if (SCLocalizationReplaceLocalesMap[shipName.toLowerCase()]) {
shipName = SCLocalizationReplaceLocalesMap[shipName.toLowerCase()];