🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix: update number formatting to "en-US" locale (#2297)
Richard Krümmelbfe9269a9594
diff --git a/web/src/features/dashboard/components/TracesBarListChart.tsx b/web/src/features/dashboard/components/TracesBarListChart.tsxindex c87fea7e08..0f81253945 100644--- a/web/src/features/dashboard/components/TracesBarListChart.tsx+++ b/web/src/features/dashboard/components/TracesBarListChart.tsx@@ -91,7 +91,7 @@ export const TracesBarListChart = ({<BarListdata={adjustedData}valueFormatter={(number: number) =>- Intl.NumberFormat("us").format(number).toString()+ Intl.NumberFormat("en-US").format(number).toString()}className="mt-6"showAnimation={true}diff --git a/web/src/utils/numbers.ts b/web/src/utils/numbers.tsindex 46927798e7..099a7db940 100644--- a/web/src/utils/numbers.ts+++ b/web/src/utils/numbers.ts@@ -1,5 +1,5 @@export const compactNumberFormatter = (number: number) => {- return Intl.NumberFormat("us", {+ return Intl.NumberFormat("en-US", {notation: "compact",compactDisplay: "short",maximumFractionDigits: 2,@@ -7,7 +7,7 @@ export const compactNumberFormatter = (number: number) => {};export const numberFormatter = (number: number) => {- return Intl.NumberFormat("us", {+ return Intl.NumberFormat("en-US", {notation: "standard",minimumFractionDigits: 2,maximumFractionDigits: 2,