4 个仓库
Libraries for adding translatable text to JavaScript applications with extraction, compilation, and runtime loading.
Distinct from Text Domain Internationalizations: No candidate covers JavaScript-specific internationalization with compile-time extraction; closest candidates focus on text domains or JavaScript runtimes.
Explore 4 awesome GitHub repositories matching web development · JavaScript Internationalization Libraries. Refine with filters or upvote what's useful.
Lingui is a JavaScript internationalization library that provides a framework-agnostic core with bindings for React, SolidJS, Svelte, Astro, and other JavaScript frameworks. It operates through a compile-time message extraction pipeline that scans source files for translatable strings, generates standard PO, JSON, or CSV catalog files, and compiles them into optimized JavaScript modules for production deployment. The library uses macro-based message definition to wrap translatable text in source code while preserving context for extraction, and includes a plural rule engine that automatically
Adds translatable text to JavaScript apps with extraction, compilation, and runtime loading of message catalogs.
Globalize 是一个 JavaScript 国际化库和 Unicode CLDR 本地化引擎。它提供了一个工具包,用于使用 Unicode 通用区域数据存储库和 IANA 时区来格式化日期、数字和货币。 该项目具有一个构建时本地化编译器,可将规则预编译为静态格式化程序,以减少运行时开销和包大小。它包含一个使用 ICU MessageFormat 语法解析和格式化复杂字符串的系统,支持变量、复数和性别变体。 该库涵盖了广泛的本地化功能,包括双向日期和时间解析、数字和货币标记化以及相对时间格式化。它管理区域数据加载、全应用语言配置以及用于解析缺失翻译键的消息继承链。
Provides a comprehensive JavaScript toolkit for formatting dates, numbers, and currencies using Unicode CLDR and IANA data.
Globalize 是一个 JavaScript 国际化库,使用 Unicode 通用区域数据存储库(CLDR)JSON 数据来提供本地化服务。它作为区域感知字符串格式化程序,以及根据特定区域设置模式将日期、时间、货币和数值转换为字符串的系统。 该库包含一个预编译的本地化引擎,可在构建过程中生成优化的格式化函数。这种方法减少了运行时开销,并消除了在执行时加载原始区域数据的需求。 该项目涵盖了广泛的国际化功能,包括相对时间格式化、动态复数处理,以及支持性别变体和特定语言变量的本地化消息格式化。它还管理货币值和时间戳的转换,以匹配区域期望。
A JavaScript library for localization and internationalization that utilizes Unicode CLDR JSON data.
This project is a JavaScript internationalization framework designed to manage the lifecycle of multilingual user interfaces. It provides a system for embedding translatable strings directly into source code, enabling developers to maintain context while building applications that support multiple languages and regional formats. The framework distinguishes itself through a grammatical localization engine that handles complex pluralization and gender variations. By utilizing programmatic rules and placeholders, it ensures that sentences remain grammatically correct across different languages.
Provides a comprehensive framework for managing and translating text strings within JavaScript applications.