1 import { GetSiteResponse } from "lemmy-js-client";
2 import { UserService } from "./services";
3 import { i18n } from "./i18next";
4 import { getLanguage } from "./utils";
6 export function initializeSite(site: GetSiteResponse) {
7 UserService.Instance.localUserView = site.my_user;
8 i18n.changeLanguage(getLanguage());