Struct LanguageProblem
- Namespace
- BSGameLib.Game.Localization
- Assembly
- BSGameLib.Game.dll
Something wrong with a language file, worded for the person who wrote it: a translator trying their file should see why it did not load, or what in it will not be used.
public readonly record struct LanguageProblem : IEquatable<LanguageProblem>
- Implements
- Inherited Members
Constructors
LanguageProblem(string, string, string)
Something wrong with a language file, worded for the person who wrote it: a translator trying their file should see why it did not load, or what in it will not be used.
public LanguageProblem(string LanguageCode, string FilePath, string Message)
Parameters
LanguageCodestringThe file's language code - its name without ".json".
FilePathstringThe file.
MessagestringWhat is wrong, in English, short enough to show after the file's name ("is not valid JSON (line 3)"): it names JSON and keys, for the file's author.
Properties
FilePath
The file.
public string FilePath { get; init; }
Property Value
LanguageCode
The file's language code - its name without ".json".
public string LanguageCode { get; init; }
Property Value
Message
What is wrong, in English, short enough to show after the file's name ("is not valid JSON (line 3)"): it names JSON and keys, for the file's author.
public string Message { get; init; }