An AMD loader plugin for babelbox that allows tokens to be loaded directly into babelbox
You can install this plugin via bower babelbox
bower install --save requirejs-babelbox babelbox
###Options
Options are to be set within requirejs config under babelbox.
{
babelbox: {
"babelboxpath": "info",
"localeseperator": "-",
"folders": false,
"fileseperator": "_"
}
}
The modulename babelbox is defined as.
Type: string
Default: 'i18n'
The seperator between the primary and secondary locals.
Default: '-'
For example: 'en-GB-YORK'
Allows languages to be added from a directory
Type: boolean
Default: false
For example:
```
require('babelbox!./i18n')
./i18n/en.json
./i18n/en_GB.json
./i18n/de.json
```
Which seperator to use to build paths to json files. Only used if folders is false.
Type: string
Default: '_'
For example:
```
require('babelbox!./i18n')
./i18n-en.json
./i18n-en_GB.json
./i18n-de.json
```
- Not have to requirejs timeout if a sublocal doesn't exist.
- Optimisation / base off a requirejs plugin template.
MIT.