I18nController
Summary
Defines a controller to handle requests relative to internationalization.
Constructor
I18nController
Syntax
I18nController
()
Summary
Item Index
Methods
getAdminDictionaryAction
Syntax
getAdminDictionaryAction
(
-
request
-
response
-
next
Summary
Gets a dictionary, with restricted access, by its name.
To restrict access to the dictionary, all dictionaries with restricted access must be prefixed by "admin-". If no dictionary is found, a JSON 404 Not Found response is send back to the client.
getDictionaryAction
Syntax
getDictionaryAction
(
-
request
-
response
-
next
Summary
Gets a public dictionary of translations by its name.
Parameters:
Example:
{
ENGLISH: 'Anglais',
FRENCH: 'Français',
...
}
If no dictionary is found, a JSON 404 Not Found response is send back.