import "fyne.io/fyne/v2"
  

Usage

type Locale

  type Locale string
  

Locale represents a user’s locale (language, region and script)

Since: 2.5

func (Locale) LanguageString

  func (l Locale) LanguageString() string
  

LanguageString returns a version of the local without the script portion. For example “en” or “fr-FR”.

func (Locale) String

  func (l Locale) String() string
  

String returns the complete locale as a standard string.