Look up a value in a Record keyed by LanguageCode, falling back to the English entry if the requested language is not present. Uses a small allowlist pattern to satisfy security/detect-object-injection.
security/detect-object-injection
Lookup table keyed by language code
Language code to resolve (or 'en' fallback)
'en'
The resolved string (never empty for well-formed records)
Look up a value in a Record keyed by LanguageCode, falling back to the English entry if the requested language is not present. Uses a small allowlist pattern to satisfy
security/detect-object-injection.