Skip to content

Commit

Permalink
Update config item locale to defaultLocale
Browse files Browse the repository at this point in the history
  • Loading branch information
hickeyma committed Dec 12, 2016
1 parent 11e09a9 commit da0fbf8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config/kibana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@
# metrics. Minimum is 100ms. Defaults to 5000.
#ops.interval: 5000

# The default locale to use for translations if the locale specified by user
# is not supported
#i18n.locale: "en"
# The default locale. This locale can be used in certain circumstances to substitute any missing
# translations.
#i18n.defaultLocale: "en"
2 changes: 1 addition & 1 deletion src/server/config/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ module.exports = () => Joi.object({
}).default(),

i18n: Joi.object({
locale: Joi.string().default('en'),
defaultLocale: Joi.string().default('en'),
}).default(),

}).default();
2 changes: 1 addition & 1 deletion src/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default async (kbnServer, server, config) => {
urlBasePath: config.get('server.basePath')
});

const uiI18n = kbnServer.uiI18n = new UiI18n(config.get('i18n.locale'));
const uiI18n = kbnServer.uiI18n = new UiI18n(config.get('i18n.defaultLocale'));
uiI18n.addUiExportConsumer(uiExports);

const bundlerEnv = new UiBundlerEnv(config.get('optimize.bundleDir'));
Expand Down

0 comments on commit da0fbf8

Please sign in to comment.