awesome-repositories.comCategoriesBlog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
airbnb avatar

airbnb/polyglot.js

0
View on GitHub↗
3,723 stars·208 forks·JavaScript·BSD-2-Clause·14 viewsairbnb.github.io/polyglot.js↗

Polyglot.js

Polyglot.js is a JavaScript internationalization library and client-side translation framework. It provides a system for mapping unique keys to localized strings, allowing applications to translate text into multiple languages.

The library includes a pluralization and interpolation engine that handles complex grammatical plural forms based on numeric counts and inserts dynamic variables into translated strings. It supports nested namespaces to organize phrase mappings into logical categories.

These utilities cover phrase translation, locale-driven configuration, and the management of multi-language website localization.

Features

  • Client-Side Translation Frameworks - Provides a lightweight client-side framework for managing nested translation namespaces and mapping keys to localized values.
  • Key-Value Translation Mappings - Provides centralized translation files using key-value pairs to support multilingual interface text.
  • Inline Variable Interpolation - Injects and evaluates variable values directly within localized text strings at runtime.
  • Template String Interpolation - Provides utilities for parsing strings with placeholders and replacing them with dynamic values.
  • Pluralization and Interpolation Engines - Implements an engine that applies linguistic pluralization rules and injects dynamic variables into strings.
  • Pluralization Rules - Implements logic for selecting correct string forms based on numeric values and locale-specific grammar.
  • Localization Settings - Implements configuration options for setting the display language and regional preferences of an interface.
  • Content Translation - Provides mechanisms for swapping user-facing text into multiple languages based on regional settings.
  • JavaScript Internationalization Libraries - Provides a JavaScript library for adding translatable text and locale support to applications.
  • Multi-Language Websites - Supports building and managing websites that serve content in multiple languages via translation management.
  • Localized String Interpolation - Embeds dynamic values into strings with automatic regional formatting for localized user interfaces.
  • Nested Key Resolution - Supports traversing nested object hierarchies using dot-notation to retrieve specific localized phrases.
  • Internationalization - Small helper library for i18n.
  • Internationalization Tools - Tiny helper for i18n tasks.
  • 国际化(i18n) - Listed in the “国际化(i18n)” section of the Awesome Frontend awesome list.

Star history

Star history chart for airbnb/polyglot.jsStar history chart for airbnb/polyglot.js

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Polyglot.js

Similar open-source projects, ranked by how many features they share with Polyglot.js.
  • i18next/i18nexti18next avatar

    i18next/i18next

    8,583View on GitHub↗

    i18next is a JavaScript localization library and internationalization framework used to translate application text into multiple languages. It functions as a dynamic translation manager that handles translation resources, language detection, and the mapping of unique keys to localized strings. The system features a pluralization and interpolation engine that applies language-specific grammatical rules for numeric counts and injects dynamic variables into strings. It utilizes a plugin-based backend architecture to load and cache translation namespaces from various sources, including remote ser

    JavaScript
    View on GitHub↗8,583
  • angular-translate/angular-translateangular-translate avatar

    angular-translate/angular-translate

    4,281View on GitHub↗

    AngularJS Internationalization Library is a localization framework for AngularJS 1.x applications. It functions as an i18n translation tool used to swap static user interface text with localized versions based on a selected locale. The framework manages multi-language content through asynchronous loading of translation files to minimize bundle size. It includes systems for handling pluralization rules and interpolating dynamic variables into translation strings. The project also provides capabilities for language switching and fallback-chain resolution to ensure a readable string is displaye

    JavaScriptangularjsboweri18n
    View on GitHub↗4,281
  • jquery/globalizejquery avatar

    jquery/globalize

    4,840View on GitHub↗

    Globalize is a JavaScript internationalization library that uses Unicode Common Locale Data Repository JSON data to provide localization services. It functions as a locale-aware string formatter and a system for transforming dates, times, currencies, and numeric values into strings based on specific locale patterns. The library includes a precompiled localization engine that generates optimized formatting functions during the build process. This approach reduces runtime overhead and removes the requirement to load raw locale data at execution. The project covers a broad range of internationa

    JavaScript
    View on GitHub↗4,840
  • lingui/js-linguilingui avatar

    lingui/js-lingui

    5,786View on GitHub↗

    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

    TypeScript
    View on GitHub↗5,786
See all 30 alternatives to Polyglot.js→

Frequently asked questions

What does airbnb/polyglot.js do?

Polyglot.js is a JavaScript internationalization library and client-side translation framework. It provides a system for mapping unique keys to localized strings, allowing applications to translate text into multiple languages.

What are the main features of airbnb/polyglot.js?

The main features of airbnb/polyglot.js are: Client-Side Translation Frameworks, Key-Value Translation Mappings, Inline Variable Interpolation, Template String Interpolation, Pluralization and Interpolation Engines, Pluralization Rules, Localization Settings, Content Translation.

What are some open-source alternatives to airbnb/polyglot.js?

Open-source alternatives to airbnb/polyglot.js include: i18next/i18next — i18next is a JavaScript localization library and internationalization framework used to translate application text… angular-translate/angular-translate — AngularJS Internationalization Library is a localization framework for AngularJS 1.x applications. It functions as an… jquery/globalize — Globalize is a JavaScript internationalization library that uses Unicode Common Locale Data Repository JSON data to… lingui/js-lingui — Lingui is a JavaScript internationalization library that provides a framework-agnostic core with bindings for React,… kazupon/vue-i18n — vue-i18n is an internationalization framework and plugin for Vue.js applications. It serves as a dynamic translation… svenfuchs/rails-i18n — This project is a Ruby on Rails internationalization locale library that provides a comprehensive set of…