0.1.8 • Published 3 months ago

npm-globalization v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

globalization

A Capacitor plugin designed to provide comprehensive globalization features, enabling developers to easily access and utilize locale data, internationalization, and localization functionalities within their Ionic applications. This plugin facilitates the handling of date and time formats, number formats, currency values, and text directionality based on the user's locale settings, enhancing the global reach and user experience of mobile apps.

Install

npm install globalization
npx cap sync

API

formatDateWithPreferredFormat(...)

formatDateWithPreferredFormat(_options: { date: string; returnTime: boolean; }) => Promise<{ value: string; }>
ParamType
_options{ date: string; returnTime: boolean; }

Returns: Promise<{ value: string; }>


formatMoneyWithPreferredCurrency(...)

formatMoneyWithPreferredCurrency(_options: { value: number; decimals: number; }) => Promise<{ value: string; }>
ParamType
_options{ value: number; decimals: number; }

Returns: Promise<{ value: string; }>


getCurrencyConfig()

getCurrencyConfig() => Promise<{}>

Returns: Promise<{}>


0.1.8

3 months ago

0.1.7

3 months ago

0.1.4

3 months ago

0.1.6

3 months ago

0.1.2

3 months ago

0.1.1

3 months ago

0.1.3

3 months ago

0.1.0

3 months ago

0.0.9

3 months ago

0.0.8

3 months ago

0.0.7

3 months ago

0.0.6

3 months ago

0.0.5

3 months ago

0.0.4

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.1

3 months ago