summaryrefslogtreecommitdiffstats
path: root/packages/gitbook/src/output/website/state.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook/src/output/website/state.js')
-rw-r--r--packages/gitbook/src/output/website/state.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/gitbook/src/output/website/state.js b/packages/gitbook/src/output/website/state.js
new file mode 100644
index 0000000..2adb9ed
--- /dev/null
+++ b/packages/gitbook/src/output/website/state.js
@@ -0,0 +1,18 @@
+const I18n = require('i18n-t');
+const Immutable = require('immutable');
+
+const 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;