Get started with globalize CDN
MIT licensed
Globalize JS: Easy date, number, and text formatting/parsing for diverse cultures.
Tags:- utility
- globalization
- internationalization
- multilingualization
- localization
- g11n
- i18n
- m17n
- L10n
- localize
- format
- parse
- translate
- strings
- numbers
- dates
- times
- calendars
- cultures
- languages
- locales
Stable version
Copied!
How to start using globalize CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with globalize CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/globalize/1.7.0/globalize.min.js"></script>
<script src="https://cdn.cdnhub.io/globalize/1.7.0/locale/globalize.culture.js"></script>
</head>
<body>
<script>
// Initialize Globalize with the default culture 'en'
Globalize.locale('en');
// Define a custom number format
Globalize.formatNumber('customCurrency', { style: 'currency', currency: 'USD' });
// Format a number using the custom currency format
const number = 12345.67;
const formattedNumber = Globalize.formatNumber(number, 'customCurrency');
console.log(formattedNumber); // Output: $12,345.67
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
0.1.1
1.0.0
1.0.0-alpha.1
1.0.0-alpha.10
1.0.0-alpha.11
1.0.0-alpha.12
1.0.0-alpha.13
1.0.0-alpha.14
1.0.0-alpha.15
1.0.0-alpha.16
1.0.0-alpha.17
1.0.0-alpha.18
1.0.0-alpha.19
1.0.0-alpha.2
1.0.0-alpha.20
1.0.0-alpha.21
1.0.0-alpha.3
1.0.0-alpha.4
1.0.0-alpha.5
1.0.0-alpha.6
1.0.0-alpha.7
1.0.0-alpha.8
1.0.0-alpha.9
1.0.1
1.0.1-rc.1
1.1.0
1.1.0-rc.1
1.1.0-rc.2
1.1.0-rc.3
1.1.0-rc.4
1.1.0-rc.5
1.1.0-rc.6
1.1.0-rc.7
1.1.0-rc.8
1.1.1
1.1.2
1.1.2-rc.1
1.2.0
1.2.0-rc.1
1.2.0-rc.2
1.2.1
1.2.2
1.2.3
1.3.0
1.3.0-alpha.0
1.3.0-alpha.1
1.3.0-alpha.2
1.3.0-alpha.3
1.3.0-alpha.4
1.3.0-alpha.5
1.3.0-rc.0
1.3.0-rc.1
1.3.0-rc.2
1.4.0
1.4.0-alpha.0
1.4.0-alpha.1
1.4.0-alpha.2
1.4.0-alpha.3
1.4.0-alpha.4
1.4.0-alpha.5
1.4.1
1.4.2
1.4.3
1.5.0
1.6.0
*** 1.7.0