Table of Contents

Struct LanguageInfo

Namespace
BSGameLib.Game.Localization
Assembly
BSGameLib.Game.dll

A language the game can show, as loaded from a language file.

public readonly record struct LanguageInfo : IEquatable<LanguageInfo>
Implements
Inherited Members

Properties

DisplayName

The language's name in its own words, from language.name. The code when the file gives none.

public string DisplayName { get; }

Property Value

string

FilePath

The file the language was loaded from.

public string FilePath { get; }

Property Value

string

FontFile

The font the language names in language.font, or null when it names none.

public string FontFile { get; }

Property Value

string

LanguageCode

The code the language is known by, such as en. It is also the file name without .json.

public string LanguageCode { get; }

Property Value

string

Script

The script the language is written in, from language.script - one of LanguageScripts's names, Latin when the file does not say - which is what a font has to be able to draw for it.

public string Script { get; }

Property Value

string