From dccd2b327dde23a9a2f82ab446020c11078433be Mon Sep 17 00:00:00 2001 From: Maruf Sharifi Date: Wed, 6 May 2026 00:40:10 +0430 Subject: [PATCH] Fix month display in Expense line chart for Chinese and Japanese locales --- src/components/Charts/constants.ts | 2 +- .../hooks/useChartFontManager/useChartFontManager.native.ts | 1 + .../Charts/hooks/useChartFontManager/useChartFontManager.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Charts/constants.ts b/src/components/Charts/constants.ts index 0f310f3647b5..1520d56796e4 100644 --- a/src/components/Charts/constants.ts +++ b/src/components/Charts/constants.ts @@ -1,5 +1,5 @@ /** Font families used by all chart label components (Paragraph API multi-font fallback). */ -const CHART_FONT_FAMILIES = ['ExpensifyNeue', 'NotoSansSymbols']; +const CHART_FONT_FAMILIES = ['ExpensifyNeue', 'NotoSansSymbols', 'NotoSansSC']; /** Number of Y-axis ticks (including zero) */ const Y_AXIS_TICK_COUNT = 5; diff --git a/src/components/Charts/hooks/useChartFontManager/useChartFontManager.native.ts b/src/components/Charts/hooks/useChartFontManager/useChartFontManager.native.ts index 5c597cfaea7b..d6d9125259dc 100644 --- a/src/components/Charts/hooks/useChartFontManager/useChartFontManager.native.ts +++ b/src/components/Charts/hooks/useChartFontManager/useChartFontManager.native.ts @@ -10,6 +10,7 @@ function useChartFontManager(): SkTypefaceFontProvider | null { require('@assets/fonts/native/ExpensifyNeue-BoldItalic.otf') as DataModule, ], NotoSansSymbols: [require('@assets/fonts/NotoSans-Symbols.ttf') as DataModule], + NotoSansSC: [require('@assets/fonts/NotoSansSC.ttf') as DataModule], }); } diff --git a/src/components/Charts/hooks/useChartFontManager/useChartFontManager.ts b/src/components/Charts/hooks/useChartFontManager/useChartFontManager.ts index 8e27d57a7c10..369a0a7e3f50 100644 --- a/src/components/Charts/hooks/useChartFontManager/useChartFontManager.ts +++ b/src/components/Charts/hooks/useChartFontManager/useChartFontManager.ts @@ -18,6 +18,7 @@ function useChartFontManager(): SkTypefaceFontProvider | null { webFont(require('@assets/fonts/web/ExpensifyNeue-BoldItalic.woff2') as string), ], NotoSansSymbols: [webFont(require('@assets/fonts/NotoSans-Symbols.ttf') as string)], + NotoSansSC: [webFont(require('@assets/fonts/NotoSansSC.ttf') as string)], }); }