1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Change CSS font-family by language preference

Fixes https://github.com/jellyfin/jellyfin-web/issues/913.

- Update `lang` attribute of `html` element on user preference change.
- Choose appropriate `font-family` depending on `lang` attribute using
  attribute selectors in CSS.
- Add `Noto Sans TC`, the Traditional Chinese (Taiwan variant).
- Fix event listener registration in `globalize.js`.
This commit is contained in:
taku0 2022-05-15 20:49:29 +09:00
parent 0895163344
commit 88e129f793
9 changed files with 1564 additions and 4 deletions

View file

@ -1,7 +1,7 @@
import { Events } from 'jellyfin-apiclient';
import isEmpty from 'lodash-es/isEmpty';
import * as userSettings from './settings/userSettings';
import { currentSettings as userSettings } from './settings/userSettings';
/* eslint-disable indent */