Table of Contents

Class LanguagesHelper

Namespace
Geotab.Checkmate.ObjectModel.Geotab.Checkmate.ObjectModel
Assembly
Geotab.Checkmate.ObjectModel.dll

Gets the supported languages by diagnostics and SecurityIdTranslation.

public static class LanguagesHelper
Inheritance
LanguagesHelper
Inherited Members

Fields

DefaultLanguage

Default language by the system.

public const string DefaultLanguage = "en"

Field Value

string

SupportedLanguages

The supported languages.

public static readonly ImmutableHashSet<string> SupportedLanguages

Field Value

ImmutableHashSet<string>

Methods

IsSupportedLanguage(string?)

Check whether the language is supported.

public static bool IsSupportedLanguage(string? language)

Parameters

language string

The language.

Returns

bool

If true, the language is a supported language.

UserNeedsTranslation(User)

Check if the user Need to use translation

public static bool UserNeedsTranslation(User user)

Parameters

user User

The user.

Returns

bool

True if the language is not DefaultLanguage.