Skip to content

Commit

Permalink
fix(format): use en as default locale
Browse files Browse the repository at this point in the history
  • Loading branch information
oumar-fall committed Oct 24, 2024
1 parent 39a2c08 commit 8775c73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/morpho-ts/src/format/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ export const convertNumStrFromEffectiveTo = (numStr: string, to: string) => {
*/
export const getEnUSNumberToLocalParts = (
numStr: string,
locale?: string,
locale = "en-US",
): LocaleParts => {
const _locale = locale || getEffectiveLocale();
const localSymbols = getLocaleSymbols(_locale);
const localSymbols = getLocaleSymbols(locale);
const value = _convertEnNumStrToLocale(numStr, localSymbols);

return { ...localSymbols, value };
Expand Down

0 comments on commit 8775c73

Please sign in to comment.