From a1f5fe4f92d456a6736822d4eba6ecba72272acc Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 30 May 2018 09:05:27 -0700 Subject: [PATCH] settings_ui: Remove now-unnecessary ensure_i18n. --- static/js/settings_ui.js | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/static/js/settings_ui.js b/static/js/settings_ui.js index a6aef64215..25cd52c6ab 100644 --- a/static/js/settings_ui.js +++ b/static/js/settings_ui.js @@ -9,20 +9,17 @@ exports.display_checkmark = function ($elem) { $(check_mark).css("width", "13px"); }; -exports.strings = {}; -function _initialize() { - exports.strings = { - success: i18n.t("Saved"), - failure: i18n.t("Save failed"), - saving: i18n.t("Saving"), - }; - - settings_bots.setup_bot_creation_policy_values(); - settings_org.setup_time_limit_dropdown_values(); -} +exports.strings = { + success: i18n.t("Saved"), + failure: i18n.t("Save failed"), + saving: i18n.t("Saving"), +}; exports.initialize = function () { - i18n.ensure_i18n(_initialize); + // TODO: Probably both of the functions this calls should just be + // run at module initialization time now that ensure_i18n is dead. + settings_bots.setup_bot_creation_policy_values(); + settings_org.setup_time_limit_dropdown_values(); }; // Generic function for informing users about changes to the settings