UserFrosting API

LocaleInterface

Locale interface.

Tags
author

Louis Charette

Table of Contents

getAuthors() Returns the list of authors of the locale. string[]
getConfigFile() Returns defined configuration file. string
getIdentifier() Returns the locale identifier. string
getConfig() Return the raw configuration data. (array|string)[]
getDependentLocales() Return an array of parent locales. \UserFrosting\I18n\LocaleInterface[]
getDependentLocalesIdentifier() Return a list of parent locale identifier (eg. [fr_FR, en_US]). string[]
getName() Return the name of the locale, in English form. string
getPluralRule() Return the number representing the plural rule to use for this locale. int
getRegionalName() Return the localized version of the locale name. string

Methods

getAuthors()

Returns the list of authors of the locale.

public getAuthors( ) : string[]
Return values
string[]

The list of authors

getConfigFile()

Returns defined configuration file.

public getConfigFile( ) : string
Return values
string

getIdentifier()

Returns the locale identifier.

public getIdentifier( ) : string
Return values
string

getConfig()

Return the raw configuration data.

public getConfig( ) : (array|string)[]
Return values
(array|string)[]

getDependentLocales()

Return an array of parent locales.

public getDependentLocales( ) : \UserFrosting\I18n\LocaleInterface[]
Return values
\UserFrosting\I18n\LocaleInterface[]

getDependentLocalesIdentifier()

Return a list of parent locale identifier (eg. [fr_FR, en_US]).

public getDependentLocalesIdentifier( ) : string[]
Return values
string[]

getName()

Return the name of the locale, in English form.

public getName( ) : string
Return values
string

getPluralRule()

Return the number representing the plural rule to use for this locale.

public getPluralRule( ) : int
Return values
int

getRegionalName()

Return the localized version of the locale name.

public getRegionalName( ) : string
Return values
string

Search results