qmetrics.net

Globalize

CLDR-based JavaScript internationalization library

Globalize screenshot

Globalize formats and parses numbers, dates, and messages using official Unicode CLDR JSON data. It runs in browsers and as a Node.js module with modular feature packages.

Overview

Globalize is a JavaScript internationalization and localization library built on the official Unicode CLDR JSON datasets. It helps applications present numbers, currencies, percentages, dates, times, plural rules, relative times, units, and messages the way speakers of each locale expect.

Users can enter values in local formats and have them parsed into real numbers and dates, then formatted back for display. Even English-only apps can use it for human-friendly relative times and other locale-sensitive output instead of raw timestamps.

The project splits functionality into modules such as number, currency, date, message, plural, relative time, and unit handling, plus core utilities and optional compiled runtime pieces for performance. You load only the CLDR data and modules needed for your locales and features.

Globalize targets both browser and Node.js environments. Documentation covers migration from older releases, error references, and examples for assembling the right data slices and API calls.

Key features

  • Unicode CLDR JSON locale data
  • Number, currency, and percent formatting
  • Date and time parsing and display
  • Message and plural rule support
  • Relative time and unit modules
  • Modular packages for browser or Node.js
  • Parse user locale input into typed values

Use cases

  • Formatting dates and numbers per user locale
  • Parsing locale-specific user input fields
  • Building multilingual web or Node.js apps
  • Loading only required CLDR slices
  • Human-readable relative timestamps in UI

Tags

Similar software

github-chinese

Userscript localization of the GitHub web interface

GitHub 中文化插件 translates GitHub’s English UI into Chinese using a maintained dictionary and regex rules. It runs as a browser userscript with optional machine translation for repository descriptions.

  • Chinese UI translation for GitHub pages
  • Regex and per-page dictionary matching
  • Repository description machine translation
JavaScriptAndroid, Browser extensionDetails →
★ 39.9k⟳ 4 days agoGPL-3.0

i18next

JavaScript internationalization and translation framework

i18next loads and applies translation files in browser, Node.js, and Deno apps. It handles plurals, context, nesting, variables, backends, caching, and language detection.

  • Runtime and build-time translation
  • Plural and context rules
  • Backend translation loading
JavaScriptWeb, CLIDetails →
★ 8.7k⟳ todayMIT

Argos Translate

Open-source offline neural machine translation for Python

Argos Translate is a Python library for offline translation using installable language model packages.

  • Offline Python translation API
  • Installable .argosmodel language packages
  • Command-line translation interface
PythonLinux, Windows, CLIDetails →
★ 6.7k⟳ 6 days agoMIT · open core

JS Lingui

Compile-time i18n macros for JavaScript and TypeScript

Lingui is a lightweight internationalization library with compile-time macros and a CLI. It targets React, React Native, Vue, SolidJS, Astro, Svelte, and plain Node with PO catalog extraction.

  • Compile-time Trans macros for UI text
  • CLI extract and compile PO catalogs
  • React, Vue, Solid, and React Native packages
TypeScriptCLIDetails →
★ 5.9k⟳ 15 days agoMIT

Python Pinyin

Chinese hanzi to pinyin conversion library

python-pinyin (pypinyin) converts Chinese characters to phonetic pinyin for notation, sorting, and search. It handles heteronyms and multiple romanization styles.

  • Phrase-aware pinyin mapping
  • Heteronym support
  • Multiple romanization styles
PythonDetails →
★ 5.4k⟳ 1 month agoMIT

ngx-translate

Runtime internationalization library for Angular applications

@ngx-translate/core adds dynamic translations to Angular apps. It loads language files at runtime, switches locales without reload, and supports pipes, directives, and signal-based APIs.

  • Runtime language switching
  • Signal-based translation state
  • Standalone translate() signal API
TypeScriptDetails →
★ 4.7k⟳ yesterdayMIT