diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-04-01 22:23:23 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-04-01 22:23:23 +0200 |
commit | dcb56ef433147a5aca9b662fe0a3b82dee3a7382 (patch) | |
tree | c96603251886565426c5c1f9eec8b97efdbf7e6b /lib/configuration.js | |
parent | fff7c5cc3ac9191765e0957fecf994e813923225 (diff) | |
parent | 8da91de51405bb3631d3fa38dd2afd31e109badc (diff) | |
download | gitbook-dcb56ef433147a5aca9b662fe0a3b82dee3a7382.zip gitbook-dcb56ef433147a5aca9b662fe0a3b82dee3a7382.tar.gz gitbook-dcb56ef433147a5aca9b662fe0a3b82dee3a7382.tar.bz2 |
Merge pull request #683 from GitbookIO/fix/i18n
Fix i18n in json format
Diffstat (limited to 'lib/configuration.js')
-rw-r--r-- | lib/configuration.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/configuration.js b/lib/configuration.js index 70b2eb5..3f8c822 100644 --- a/lib/configuration.js +++ b/lib/configuration.js @@ -60,7 +60,6 @@ function normalizePluginsNames(plugins) { return _.pluck(normalizePluginsList(plugins), "name"); }; - var Configuration = function(book, options) { var that = this; @@ -125,7 +124,7 @@ Configuration.prototype.load = function() { // Default value for text direction (from language) if (!that.options.direction) { - var lang = i18n.getByLanguage(that.options.language); + var lang = i18n.getCatalog(that.options.language); if (lang) that.options.direction = lang.direction; } |