Localised

world.Localised
See theLocalised companion class
object Localised

Construction and resolution for Localised.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Localised.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[A](entries: (Locale, A)*): Localised[A]
def resolve[A](l: Localised[A], locale: Locale): Option[A]

Resolves by truncation: the exact tag, then progressively shorter prefixes of it.

Resolves by truncation: the exact tag, then progressively shorter prefixes of it.

Attributes

def resolve[A](l: Localised[A], locale: Locale, default: A): A

Total resolution against an application default.

Total resolution against an application default.

Attributes

def updated[A](l: Localised[A], locale: Locale, value: A): Localised[A]

The holding with locale bound to value.

The holding with locale bound to value.

Attributes

Givens

Givens

given given_CanEqual_Localised_Localised: [A] => CanEqual[Localised[A], Localised[A]]

Extensions

Extensions

extension [A](l: Localised[A])
def resolve(locale: Locale): Option[A]
def resolve(locale: Locale, default: A): A
def updated(locale: Locale, value: A): Localised[A]