UNPKG

@porsche-design-system/components-angular

Version:

Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.

30 lines (27 loc) 969 B
import { fontPorscheNextJa } from './fontPorscheNextJa.mjs'; import { fontPorscheNextKo } from './fontPorscheNextKo.mjs'; import { fontPorscheNextZhHans } from './fontPorscheNextZhHans.mjs'; import { fontPorscheNextZhHant } from './fontPorscheNextZhHant.mjs'; const getCJKFontFamilyStyle = () => { return { selectors: { /* Simplified Chinese */ '&:lang(zh-Hans), &:lang(zh-CN), &:lang(zh-SG)': { fontFamily: fontPorscheNextZhHans, }, /* Traditional Chinese */ '&:lang(zh-Hant), &:lang(zh-TW), &:lang(zh-HK), &:lang(zh-MO)': { fontFamily: fontPorscheNextZhHant, }, /* Japanese */ '&:lang(ja)': { fontFamily: fontPorscheNextJa, }, /* Korean */ '&:lang(ko)': { fontFamily: fontPorscheNextKo, }, }, }; }; export { getCJKFontFamilyStyle };