mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-01 10:09:56 +00:00
9 lines
316 B
TypeScript
9 lines
316 B
TypeScript
import { GetSiteResponse } from "lemmy-js-client";
|
|
import { UserService } from "./services";
|
|
import { i18n } from "./i18next";
|
|
import { getLanguage } from "./utils";
|
|
|
|
export function initializeSite(site: GetSiteResponse) {
|
|
UserService.Instance.localUserView = site.my_user;
|
|
i18n.changeLanguage(getLanguage());
|
|
}
|