Table of Contents

Class LanguageTag

Namespace
Shard.Assets.I18n
Assembly
Shard.Assets.dll

Validates the bounded BCP-47 language tags accepted from clients.

public static class LanguageTag
Inheritance
LanguageTag
Inherited Members

Fields

MaxLength

RFC 5646 limits the complete language tag to 255 characters.

public const int MaxLength = 255

Field Value

int

Methods

TryNormalize(string?, out string)

public static bool TryNormalize(string? value, out string language)

Parameters

value string
language string

Returns

bool