Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer TypeScript format functions #219

Open
json-derulo opened this issue Nov 18, 2023 · 0 comments
Open

Offer TypeScript format functions #219

json-derulo opened this issue Nov 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@json-derulo
Copy link
Owner

json-derulo commented Nov 18, 2023

Description
Angular offers TypeScript functions to make the logic of their i18n pipes available also in TypeScript code, i.e. the formatDate() function. It would be useful to have such functions available also for the pipes in this package.

Proposed Solution
For each pipe, there is a TypeScript function exposed, which performs the base logic of the pipe, i.e. intlFormatDate().

Alternatives considered
There might be workarounds like constructing or injecting the pipe, but this is not good practice and could cause issues.

@json-derulo json-derulo pinned this issue Nov 18, 2023
@json-derulo json-derulo added the enhancement New feature or request label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant