mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
20 lines
410 B
JavaScript
20 lines
410 B
JavaScript
var I18n = require('i18n-t');
|
|
var Immutable = require('immutable');
|
|
|
|
var GeneratorState = Immutable.Record({
|
|
i18n: I18n(),
|
|
|
|
// List of plugins' resources
|
|
resources: Immutable.Map()
|
|
});
|
|
|
|
GeneratorState.prototype.getI18n = function() {
|
|
return this.get('i18n');
|
|
};
|
|
|
|
GeneratorState.prototype.getResources = function() {
|
|
return this.get('resources');
|
|
};
|
|
|
|
module.exports = GeneratorState;
|