A section defines a translation file. The following JSON object is an example section:
{
name: 'autumn',
alias: 'fall',
path: '/assets/i18n/en/autumn.json',
format: 'JSON',
type: 'json'
}
The section has these properties:
'json'
, 'text'
, 'blob'
and
'arraybuffer'
. The default value is 'json'
.
This parameter also is used for custom format converters.If a section uses the default values, it is rather simple:
{ name: 'autumn' }
The above simple definition can be replaced by the name string:
'autumn'