mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 02:51:46 +00:00
refactor(transactions): remover exports mortos dateFormatter e monthFormatter
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -11,23 +11,6 @@ import { capitalize } from "@/shared/utils/string";
|
|||||||
|
|
||||||
export { currencyFormatter };
|
export { currencyFormatter };
|
||||||
|
|
||||||
/**
|
|
||||||
* Date formatter for pt-BR locale (dd/mm/yyyy)
|
|
||||||
*/
|
|
||||||
export const dateFormatter = new Intl.DateTimeFormat("pt-BR", {
|
|
||||||
day: "2-digit",
|
|
||||||
month: "2-digit",
|
|
||||||
year: "numeric",
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Month formatter for pt-BR locale (Month Year)
|
|
||||||
*/
|
|
||||||
export const monthFormatter = new Intl.DateTimeFormat("pt-BR", {
|
|
||||||
month: "long",
|
|
||||||
year: "numeric",
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Formats a date string to localized format
|
* Formats a date string to localized format
|
||||||
* @param value - ISO date string or null
|
* @param value - ISO date string or null
|
||||||
|
|||||||
Reference in New Issue
Block a user