UserFrosting API

DictionaryInterface extends Repository

Locale Dictionary.

Used to return all "Key => translation" data matrix Extend the Config repository to have acess to all the standard has, get, etc. public methods on the dictionnay array

Tags
author

Louis Charette

Table of Contents

getDictionary() Returns all loaded locale Key => Translation data dictionary. (string|array)[]
getLocale() Return the associate locale. LocaleInterface
getFlattenDictionary() Return the dictionnary as a flatten array, using dot notation. string[]

Methods

getDictionary()

Returns all loaded locale Key => Translation data dictionary.

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

The locale dictionary

getFlattenDictionary()

Return the dictionnary as a flatten array, using dot notation.

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

Search results