mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
i18n: Reorganize language_list logic.
This reorganization follows our modern coding conventions for avoid leaving data in page_params that should be owned by a single module.
This commit is contained in:
@@ -27,6 +27,7 @@ import * as gear_menu from "./gear_menu";
|
||||
import * as giphy from "./giphy";
|
||||
import * as hashchange from "./hashchange";
|
||||
import * as hotspots from "./hotspots";
|
||||
import * as i18n from "./i18n";
|
||||
import * as invite from "./invite";
|
||||
import * as lightbox from "./lightbox";
|
||||
import * as linkifiers from "./linkifiers";
|
||||
@@ -465,7 +466,9 @@ export function initialize_everything() {
|
||||
const user_groups_params = pop_fields("realm_user_groups");
|
||||
|
||||
const user_status_params = pop_fields("user_status");
|
||||
const i18n_params = pop_fields("language_list");
|
||||
|
||||
i18n.initialize(i18n_params);
|
||||
tippyjs.initialize();
|
||||
// We need to initialize compose early, because other modules'
|
||||
// initialization expects `#compose` to be already present in the
|
||||
|
||||
Reference in New Issue
Block a user