Table of Contents

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

LanguageCode string

The file's language code - its name without ".json".

FilePath string

The file.

Message string

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.

Properties

FilePath

The file.

public string FilePath { get; init; }

Property Value

string

LanguageCode

The file's language code - its name without ".json".

public string LanguageCode { get; init; }

Property Value

string

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; }

Property Value

string