Skip to content

Add support for case-insensitivity for lazy loaded locales #744

Description

@GrooveypenguinX

SPT Version

4.0

Project Type

Server

Expected Result

Be able to add and override locales regardless of casing

Actual Result

Locales with mismatched casing are recognized as duplicate locales and throw a debug error

Steps To Reproduce

Have an existing locale in the server (i.e. "672df12f97f0469cea52f55e name": "Prestige 1")
Override the locale with a mismatched key case (i.e. "672df12f97f0469cea52f55e Name": "Prestige 1")
Boot to main menu with debug logging enabled and see duplicate key error (i.e. [Error : DebugPlus] Locale. Trying to add duplicate: 672df12f97f0469cea52f55e Name)

Server Log

spt20260328.log

BepinEx Log

LogOutput.log

Client Log

2026.03.28_20-20-40_0.16.9.0.40087 traces.log

Player Profile

No response

Screenshots

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

Status
Testing

Relationships

None yet

Development

No branches or pull requests

Issue actions