Language class

Holodex uses the BCP47 standard for language codes

Make a Pull Request or GitHub issue to add more language options.

Constructors

Language.fromString(String? source)
Returns a new Language from a string language code. If the string is not a valid Unicode Locale Identifiers it defaults to Language.all.
factory
Language.other(Locale other)
Returns a new Language for a locale that is not included in values.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
locale Locale
The Locale of this Language.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toLanguageTag() String
Returns the language tag for this Language from the Locale.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

all Language
Language with locale set to all.
final
chinese Language
Language with locale zh.
final
english Language
Language with locale en.
final
french Language
Language with locale fr.
final
indonesian Language
Language with locale id.
final
japanese Language
Language with locale jp.
final
korean Language
Language with locale ko.
final
russian Language
Language with locale ru.
final
spanish Language
Language with locale es.
final
values List<Language>
Most languages supported by Holodex as of 2023-02-05.
final

Static Methods

toStringStatic(Language language) String
Returns the language tag for language from the Locale.