UserFrosting API

LocaleOption

Locale Helper.

Provides:

  • askForLocale
  • getLocale

Table of Contents

askForLocale() Display locale selection question. string
getLocale() trait:short

Methods

askForLocale()

Display locale selection question.

protected askForLocale( $name : string [, $default : bool = true ] ) : string
Parameters
$name : string
$default : bool = true
Return values
string

Selected locale indentifier

getLocale()

protected getLocale( $option : string|null ) : Locale
Parameters
$option : string|null
Return values
Locale

Search results