thehardwarestore.ai

where AI agents shop for the right tools

── 99268 repos indexed ── | filtered by tag: localization
Humanizr/Humanizer ★ 9926 1068 APPLICATION

Humanizer is a .NET library that provides a comprehensive set of extension methods for converting raw data types (numbers, dates, times, byte sizes, strings, enums, collections) into human-readable, localized text. It supports over 90 locales with full pluralization, ordinalization, inflection, and parsing of number words back to numeric values. The library is designed as a reusable dependency for applications requiring user-friendly formatting. Architecturally, Humanizer follows a strategy/registry pattern: each formatting domain (number-to-words, date humanization, ordinalization, etc.) defines an interface and a default implementation, with locale-specific overrides resolved through a central Configurator. Locale data is defined in YAML files and compiled at build time by a Roslyn source generator into immutable profile classes, keeping runtime algorithms generic and data-driven. The library also includes Roslyn analyzers for API migration and a comprehensive test suite with cross-locale theory tests. Key entry points are extension methods on primitive types (e.g., `42.ToWords()`, `"hello_world".Humanize()`, `DateTime.Now.Humanize()`, `ByteSize.FromBytes(1024).Humanize()`) and the `Configurator` for advanced configuration. The primary data flow is: user calls an extension method → culture resolution → delegation to the appropriate converter/formatter → use of generated profile data to produce localized output. External dependencies are limited to the .NET standard library and CLDR plural rule data.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 5 reusable components found
i18next/i18next ★ 8640 699 APPLICATION

i18next is a mature, full-featured internationalization (i18n) library for JavaScript and TypeScript, used in production by thousands of projects across web (browser), Node.js, and Deno environments. It provides a complete translation pipeline: key-based lookup with namespaces, interpolation of variables ({{var}}), nesting of translations ($t(...)), pluralization via Intl.PluralRules (with ordinal support), context variants, and rich formatting (number, currency, datetime, relative time, list) using Intl APIs. The library is backend-agnostic: resources can be loaded synchronously or asynchronously from any source (files, HTTP, databases) via a plugin system, with built-in retry logic and parallel-read throttling. It also includes language detection, fallback chains, post-processing, and an event system for lifecycle hooks. The architecture is modular and event-driven. The core I18n class orchestrates initialization, plugin registration (via .use()), and delegates translation to the Translator. The Translator resolves keys using LanguageUtils (hierarchy/fallback), PluralResolver, and Interpolator, then looks up strings in the in-memory ResourceStore. The BackendConnector manages async loading from backends. The library exposes a selector API (keyFromSelector) that uses a revocable Proxy to collect property paths, enabling type-safe key construction in TypeScript. TypeScript support is extensive: users can augment CustomTypeOptions or ResourceNamespaceMap to get compile-time validation of translation keys, interpolation variables, and return types. Key entry points are the default instance (i18next.t(), i18next.init()) and factory methods (createInstance, getFixedT). The library has zero runtime dependencies; all external integrations (React, filesystem backends, language detectors) are separate packages. The codebase demonstrates high craftsmanship: performance-critical paths are optimized (caching of plural rules, language hierarchies, compiled regexps), security issues (ReDoS, prototype pollution, log injection) have been systematically addressed, and the type system is one of the most sophisticated in the JavaScript i18n ecosystem.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 5 reusable components found
vacanza/holidays ★ 1930 709 APPLICATION

This is the `holidays` Python library, a fast, efficient tool for generating country-, province-, state-, and financial-market-specific holiday calendars on the fly. It supports over 250 ISO 3166-1 countries (with subdivisions) and 25+ financial exchanges (NYSE, NASDAQ, LSE, etc.), using a mixin-based composition pattern to combine calendar systems (Gregorian, Islamic, Hebrew, Chinese, Hindu, Buddhist, etc.) with localization in dozens of languages. The library is designed for integration into applications that need to check whether a date is a holiday, retrieve holiday names, or export calendars to iCal format. It is not a data research project; it is a well-engineered Python library with a clean public API (`holidays.US()`, `holidays.country_holidays('US')`), extensive test coverage (100% code coverage enforced), and a robust observed-holiday rule system. The codebase demonstrates high craftsmanship through its reusable mixin pattern, configurable observed rules, and a generic iCal exporter. It is actively maintained with frequent commits, CI/CD pipelines, and dependabot integration.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 4 reusable components found
bigcalendar/react-big-calendar ★ 8764 2301 APPLICATION

React Big Calendar is a flexible, customizable calendar component library for React applications. It provides multiple views (month, week, day, work week, and agenda) for displaying and managing events, with support for event selection, creation, and modification. The library emphasizes customization through pluggable localizers (for date formatting with Moment.js, Globalize.js, date-fns, Day.js, or Luxon), custom component injection points, and a flexible event accessor pattern. The architecture is modular, with the main Calendar component orchestrating various view components (TimeGrid, DayColumn, Month, etc.) and utilities for event layout, slot metrics, and resource management. Drag-and-drop functionality is offered as a separate addon via a higher-order component, allowing users to enable event moving and resizing. The library also includes a toolbar for navigation, popup overlays for overflow events, and comprehensive keyboard and mouse/touch interaction handling. Key strengths include its robust event layout algorithms (handling overlapping events via configurable overlap/no-overlap strategies), extensive prop validation with PropTypes, and a strong testing culture (unit tests with Jest and end-to-end tests with Playwright). The library is actively maintained, supports modern React versions (16.14.0+), and avoids legacy browser dependencies by focusing on modern flexbox-based layouts. However, the extensive customization API and support for multiple date localization libraries contribute to a larger surface area that requires careful documentation and version management. Despite this, the codebase demonstrates solid engineering practices, clear separation of concerns, and reusable utility patterns that can be adapted for other scheduling or timeline-based UIs.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 3 reusable components found
FluentValidation/FluentValidation ★ 9753 1274 APPLICATION

FluentValidation is a .NET library for building strongly-typed validation rules using a fluent interface. It supports both synchronous and asynchronous validation, localization, conditional validation, rulesets, and cascade modes. The architecture centers around AbstractValidator<T> and IValidator<T>, with extension methods for common validation scenarios. The library is designed for use in various .NET applications, including ASP.NET Core, and provides dependency injection integration. Key components include a high-performance accessor cache, message formatter for templating, condition builder for reusable predicates, property chain utility for object graph navigation, and validation strategy for configuring validation scope.

RATING: 9.2/10 MAINT: maintained DRIFT: low
▸ 5 reusable components found
dotnetcore/BootstrapBlazor ★ 4870 393 APPLICATION

BootstrapBlazor is a comprehensive, enterprise-class Blazor UI component library built on Bootstrap 5. It provides over 100 reusable components including tables, dialogs, forms, charts, navigation, and media elements, all with extensive localization support (Chinese/English) and JavaScript interop for rich client-side behavior. The library follows a consistent architecture: each component inherits from BootstrapComponentBase, uses a CssBuilder for CSS class construction, and optionally loads a dedicated JS module via the JSModuleAutoLoader attribute. Services like DialogService, ToastService, and DrawerService follow a callback-based pattern (BootstrapServiceBase) for decoupled UI interactions. The repository also includes a full demo server (BootstrapBlazor.Server) that showcases every component with live examples, sample data services, and API controllers for authentication, file upload, and real-time communication (SignalR, TCP sockets). External dependencies include Bootstrap CSS, FontAwesome/Material Design icons, Floating UI for dropdown positioning, and several third-party JS libraries (Chart.js, Plyr, etc.). The codebase is well-tested with bUnit and xUnit, and is actively maintained with frequent releases and a large contributor community.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 5 reusable components found
elixir-gettext/gettext ★ 492 95 APPLICATION

Gettext is an internationalization (i18n) and localization (l10n) library for Elixir applications. It provides macros for marking strings in source code that need translation, extracts these strings into POT (Portable Object Template) files, and merges them with PO (Portable Object) files for different locales. At runtime, it looks up translations based on the current locale and supports features like pluralization, context-based translations, domain-specific messages, and string interpolation with compile-time optimization. The architecture follows a library pattern with clear separation between the API (Gettext module), backend behavior (Gettext.Backend), compilation (Gettext.Compiler), extraction (Gettext.Extractor), merging (Gettext.Merger), and specialized components for interpolation, pluralization, and fuzzy matching.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 3 reusable components found
ApolloAuto/apollo ★ 26846 9953 APPLICATION

Apollo is a comprehensive autonomous driving platform developed by Baidu, providing a full software stack for self-driving vehicles. The repository contains a modular architecture built on Cyber RT, a high-performance runtime framework optimized for autonomous driving scenarios with low latency and high throughput. Key modules include perception (camera, LiDAR, radar, sensor fusion), planning (scenario-based with multiple planners), control (PID, LQR, MPC controllers), localization (RTK, NDT, MSF), prediction, routing, and V2X communication. The system integrates with hardware through extensive driver support for various sensors (Velodyne, Hesai, Continental radar, Mobileye, etc.) and vehicle platforms (Lincoln, Lexus, Geely, etc.). Dreamview provides a web-based visualization and monitoring interface. The codebase demonstrates strong engineering practices with clear module boundaries, extensive configuration management, comprehensive testing infrastructure, and support for both x86_64 and ARM64 (Orin) platforms. Recent versions introduce package management for easier deployment, Dreamview Plus for enhanced developer experience, and cloud-based model training services (Apollo Fuel).

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 8 reusable components found
coteditor/CotEditor ★ 8599 541 APPLICATION

CotEditor is a native macOS text editor written in Swift, designed for code editing with syntax highlighting, file management, find/replace, and scripting support. It uses a hybrid AppKit/SwiftUI architecture, with core editing logic in the EditorCore package, syntax parsing in the Syntax package (supporting both regex-based and tree-sitter incremental parsing), and macOS-specific UI controls in the MacUI package. The application follows an MVVM pattern with @Observable models, async task-based background processing, and extensive localization across 19 languages. Key entry points include the DocumentWindow and DocumentViewController for the main editing interface, the SettingsWindow for configuration, and the command-line tool `cot`. Data flows involve file opening with encoding detection, syntax highlighting via incremental parsers, find/replace operations with progress tracking, and remote editing via the rmate protocol. External dependencies include tree-sitter grammars for 20+ languages, Sparkle for updates, and various macOS system APIs. The codebase demonstrates strong engineering practices: modular package design, protocol-oriented interfaces, reactive state management, and comprehensive test coverage. It is actively maintained with frequent releases and security fixes.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 6 reusable components found
SwiftGen/SwiftGen ★ 9542 763 APPLICATION

SwiftGen is a mature, production-grade Swift code generation tool that produces type-safe Swift (and Objective-C) code from project resource files. It parses asset catalogs, strings files, fonts, storyboards, JSON, YAML, plist, Core Data models, colors, and arbitrary files, then feeds the parsed context into Stencil templates to generate compile-time safe accessors. The tool is primarily a CLI executable (`swiftgen`) that can be integrated into Xcode build phases, but it also exposes a reusable framework (`SwiftGenKit`) for parsing and context generation. The architecture cleanly separates parsing (SwiftGenKit) from template rendering (Stencil) and CLI orchestration (SwiftGenCLI), with a YAML configuration file (`swiftgen.yml`) centralizing all inputs, outputs, and parameters. The codebase is well-tested with unit tests for each parser and template output comparison against extensive fixture files. It supports Swift 4 and 5 output variants, custom templates, and parameters like `publicAccess`, `bundle`, and `lookupFunction`. While the project has some deprecated features and a large fixture set, it is actively maintained with recent commits, a clear migration guide, and a robust release pipeline via GitHub Actions.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
exelban/stats ★ 42305 1559 APPLICATION

Stats is a native macOS menu bar system monitor that provides real-time hardware and software metrics for CPU, GPU, RAM, Disk, Network, Battery, Sensors (temperature/voltage/fan), Bluetooth, and Clock. Built entirely in Swift with AppKit, it uses private IOKit, SMC, and IOReport APIs to collect system data, and offers highly customizable widgets (mini, line/bar/pie charts, tachometer, text, etc.) drawn directly in the menu bar. The architecture is modular: each monitored subsystem lives in its own 'Module' directory with a consistent structure (main.swift, readers, popup, settings, notifications, portal). A shared 'Kit' framework provides reusable components including a reader base class with interval management and history persistence via bundled LevelDB, a thread-safe key-value store wrapper, and a set of custom drawing chart widgets. The app also supports remote monitoring via an optional cloud service (System Stats), privileged helper for fan control, macOS widget extensions, and extensive localization (40+ languages). The codebase demonstrates strong engineering practices with clean abstractions, encapsulation, and reusability, though some modules exhibit boilerplate duplication and the project relies on several deprecated or private APIs that may require updates for future macOS releases.

RATING: 8.8/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
generaltranslation/gt ★ 1062 40 APPLICATION

This is a monorepo for General Translation (GT), a comprehensive internationalization (i18n) and localization (l10n) platform. It provides runtime libraries for React, Next.js, Vue, React Native, Node.js, and Python frameworks, enabling developers to translate entire React components—not just strings—using a simple `<T>` wrapper. The platform includes a CLI for extracting translatable strings from source code, uploading them to a translation service, and downloading completed translations. A Babel/SWC compiler injects translation hashes at build time, and a Sanity CMS plugin manages document-level translations. The architecture is a multi-package monorepo with shared core types, a compiler pipeline, framework-specific adapters, and a cloud API client. The codebase demonstrates high craftsmanship with clean abstractions like condition stores, singleton caches, batch processing utilities, and a step-based workflow pattern. It is actively maintained with extensive test coverage and modern tooling (pnpm, Turborepo, TypeScript, Vitest).

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 9 reusable components found
odoo/odoo ★ 53778 33449 APPLICATION

Odoo is a comprehensive, modular Enterprise Resource Planning (ERP) suite built on a Python backend and a JavaScript/TypeScript frontend. It functions as a full-stack web application framework, providing core business modules (Accounting, Sales, Inventory, HR, CRM) alongside a robust ORM and a component-based UI framework (Owl). The architecture is a modular monolith where the core `odoo/` directory defines the framework and `addons/` contains business logic, localization, and integrations. It relies heavily on PostgreSQL for data persistence and uses a registry pattern for extensibility in both backend and frontend code. The system is designed for high customization through model inheritance (`_inherit`) and frontend patching (`patch`), allowing developers to extend functionality without modifying core code directly. The codebase demonstrates significant craftsmanship in its ORM implementation, which handles complex relationships, computed fields, and access rights rules. The frontend utilizes the Owl framework for reactive components, with a sophisticated service registry for dependency injection. However, the heavy reliance on prototype patching in JavaScript and monkey-patching in Python introduces technical debt and potential fragility during framework upgrades. The repository is actively maintained with frequent commits, a large community, and extensive test coverage including unit tests, integration tests, and UI tours. Localization support is a major feature, with country-specific modules handling tax, invoicing, and compliance requirements.

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 6 reusable components found
opral/inlang ★ 2005 178 APPLICATION

Inlang is a localization platform that treats translation as code, storing messages in a versioned Lix database managed through Git. The monorepo includes a TypeScript SDK for loading, querying, and exporting translation projects; a CLI for running checks and machine translation; a plugin system for integrating with multiple message formats (JSON, ICU, i18next, Android XML, Apple xcstrings, and more); and Lit-based web components for editing translations in-browser. The SDK provides a rich data model (bundles, messages, variants with selectors) and a checks engine for detecting missing translations, unused messages, and plural errors. Architecturally, the repo is organized as a pnpm/Nx monorepo. The core `@inlang/sdk` package manages project lifecycle and database operations via Kysely. Plugins conform to a uniform `importFiles/exportFiles` interface and are loaded dynamically. The CLI uses Commander and Consola, while the UI components use Lit with Shoelace design tokens. The companion website (TanStack Start) serves documentation, a marketplace registry, and SEO-optimized pages. The system is designed to run in Node.js (CLI) and browsers (editor), with a focus on preserving file formatting through careful diffing and merging during export. Notable craftsmanship includes the `keepUnchangedJsonEntries` utility for byte-identical file preservation, the `EchoTracker` for optimistic UI state, the `pluralExamples` helper for locale-aware examples, and the `human-id` word lists for generating readable identifiers. These components are self-contained, well-tested, and reusable outside the localization domain. The codebase demonstrates strong engineering practices with extensive test coverage (vitest, Storybook, fuzzing) and compatibility tests ensuring backward compatibility across SDK versions.

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
untra/polyglot ★ 498 75 APPLICATION

Polyglot is a Ruby gem that serves as a Jekyll plugin for internationalization (i18n) of static sites. It enables building a site in multiple languages by forking the Jekyll build process per language, patching core Jekyll classes (`Site`, `StaticFile`) to handle language-specific files, and providing Liquid tags for SEO headers (`I18n_Headers`) and URL relativization control (`static_href`). The plugin coordinates documents across languages, supports fallback to the default language, localizes `site.data` via language-specific subdirectories, and generates Netlify-compatible redirects. It is not a standalone application but a library that integrates deeply with Jekyll via hooks and monkey-patching. The repository includes a comprehensive demo site with 18 languages, a full RSpec test suite, CI via CircleCI, and extensive documentation in both README and `ai_docs/`. The codebase is well-structured, with clear separation of concerns (hooks, patches, liquid tags), and demonstrates non-trivial engineering in areas like parallel forking, regex-based URL relativization, and document coordination.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 3 reusable components found
microsoft/calculator ★ 31070 5822 APPLICATION

This is Microsoft's open-source Windows Calculator, the production calculator app shipped on Windows. The repository is a full UWP/XAML application with Standard, Scientific, Programmer, Date, Unit Converter, and Graphing modes. The core is split into `CalcManager` (a native C++ calculation engine implementing arbitrary-precision rational arithmetic via the Ratpack library), `CalcViewModel` (C++/CX view models handling history, memory, copy/paste, unit data, navigation, and state snapshots), `Calculator` (the C#/XAML UI shell), and `GraphControl` (a DirectX-based graphing control). The app is MVVM-structured, heavily localized in 25+ languages, and includes both C++ unit tests and WinAppDriver-based UI tests.

RATING: 8.4/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
pycountry/pycountry ★ 972 141 APPLICATION

pycountry is a Python library that provides programmatic access to ISO standard data including countries (ISO 3166-1), subdivisions (ISO 3166-2), historic countries (ISO 3166-3), currencies (ISO 4217), languages (ISO 639-3), language families (ISO 639-5), and scripts (ISO 15924). It packages JSON databases and compiled GNU gettext translation files (`.mo`) for dozens of locales, sourced from the Debian iso-codes project. The library is a pure wrapper—no data transformation or analysis is performed—and explicitly rejects data contributions. Its core API exposes objects like `pycountry.countries`, `pycountry.languages`, and `pycountry.currencies` with methods for exact lookups (`get`, `lookup`), fuzzy search (`search_fuzzy`), and dynamic entry modification (`add_entry`, `remove_entry`). Translation support is provided via locale-aware gettext catalogs, allowing localized name retrieval for supported languages. The architecture is a monolith library with minimal external dependencies (only standard library modules). Single Python package, no web server or CLI. Data is loaded lazily and cached. The test suite covers all database objects and edge cases.

RATING: 8.4/10 MAINT: active DRIFT: low
▸ 3 reusable components found
stefro/laravel-lang-country ★ 301 30 APPLICATION

This repository is a Laravel package that extends the framework's localization capabilities to include country-specific formatting. It provides a middleware that automatically detects the user's preferred language and country from browser headers or user profile, sets session variables, and offers a facade with methods to retrieve localized date formats, currency symbols, country names, and emoji flags. It also includes a language switcher controller and listens to login events to persist user preferences. The architecture follows Laravel's service provider pattern, with a main LangCountry class that reads data from bundled JSON files for each supported locale. The package integrates with Carbon for date formatting and provides Carbon macros for convenient use. The codebase is well-tested with 100% coverage, typed, and follows PSR-12 coding standards. The most reusable component is the PreferredLanguage service, which encapsulates the logic of parsing the Accept-Language header and matching against allowed locales with quality weighting and fallback. This could be extracted into a standalone library for browser language detection in any PHP project.

RATING: 8.4/10 MAINT: active DRIFT: low
▸ 1 reusable components found
ing-bank/lion ★ 1961 348 APPLICATION

Lion is a monorepo maintained by ING Bank that provides a comprehensive, white-label web component library built on LitElement. It focuses on accessible, performant, and extensible form controls (inputs, checkboxes, radio groups, selects, datepickers, IBAN, phone, file, etc.), overlays (dialog, tooltip, popover, drawer), navigation components (accordion, tabs, pagination, steps), and localization/internationalization utilities. The library is architected around a rich mixin system (e.g., FormControlMixin, ValidateMixin, OverlayMixin, LocalizeMixin) that allows deep customization without sacrificing encapsulation. It also includes Node.js tooling: an AST-based dependency analyzer (providence-analytics), a documentation publishing tool, and a Babel plugin for extending docs. The codebase demonstrates strong software engineering practices: extensive test suites, accessibility-first design, scoped custom element registries, and a modular export map. However, there are signs of technical drift (outdated dependencies like ESLint 8, TypeScript 4.9, Chai 4) and some duplicated code (e.g., localizeNamespaceLoader switch statements repeated across packages, translation drift). The monorepo uses changesets for versioning and has active CI/CD.

RATING: 8.3/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
wenzhixin/multiple-select ★ 1910 650 APPLICATION

Multiple Select is a mature jQuery plugin that transforms native HTML `<select>` elements into feature-rich dropdowns with checkboxes, supporting single and multiple selection, optgroups, filtering, virtual scrolling for large datasets, localization, and full keyboard accessibility. The library is architecturally structured as a monolith jQuery-fn extension with a core class (`MultipleSelect.js`), separate utilities (`utils/index.js`), constants, virtual scroll implementation, and a Bootstrap 5 theme. It also provides Vue 2/3 wrappers (`src/vue/`) and is distributed as UMD modules via npm and CDN. The codebase demonstrates solid engineering practices: ES6+ modules, Rollup/Vite build system, comprehensive linting (ESLint, Stylelint, cspell), and a configurable options/events/methods API. While tightly coupled to jQuery, the utility functions and virtual scroll component are potentially reusable standalone. The plugin is actively maintained with recent releases and a responsive issue tracker.

RATING: 8.3/10 MAINT: active DRIFT: low
▸ 2 reusable components found
$ loading more...
$ submit: