awesome-repositories.com
Blog
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
symfony avatar

symfony/translation

0
View on GitHub↗
6,607 Stars·90 Forks·PHP·MIT·6 Aufrufesymfony.com/translation↗

Translation

Symfony Translation is a PHP library and framework component for internationalizing applications. It provides a complete system for managing message catalogs, handling locale-aware string translation, and formatting messages using ICU MessageFormat syntax to support pluralization, gender, and conditional selection. The component organizes translatable strings into named domains, supports key-based lookup that decouples source text from localized versions, and offers deferred rendering through translatable objects that store parameters and render only when output is needed.

The library distinguishes itself through its comprehensive XLIFF support across versions 1.2 through 2.2, including the ability to attach contextual notes for translators and handle plural, gender, and select variations. It provides a push-pull interface for synchronizing translation content with third-party services, a fallback locale chain resolution system, and the ability to register custom loaders and dumpers for non-standard file formats. The component also includes console commands for extracting translation keys from source files, synchronizing catalogs, and identifying missing or unused translations.

Beyond core translation, the component integrates with broader application infrastructure including locale-aware routing, session-based locale persistence, and automatic locale detection from HTTP headers. It supports pseudolocalization for testing, an identity translator for development, and validation of translation file syntax. The library manages translation resource files organized by domain, locale, and format, with override priority across application bundles.

Features

  • Internationalization Libraries - Provides a complete internationalization library for PHP with message catalogs, locale handling, and ICU MessageFormat.
  • Translation Placeholder Substitutions - Replaces percent-delimited placeholders in translated messages with dynamic values.
  • XLIFF Extraction and Compilation - Reads translation strings from XLIFF XML files supporting versions 1.2 through 2.2 for structured localization.
  • ICU MessageFormat Placeholders - Inserts variable values into translated strings using curly-brace placeholders processed by the ICU MessageFormatter.

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI
  • Message Domain Organization - Organizes translatable strings into named domains for separate translation files per application part.
  • I18n Message Extraction - Provides a complete internationalization workflow with message catalogs, ICU MessageFormat, and locale-aware formatting.
  • String Localization - Loads a set of translated messages for a given locale and replaces source strings with their localized equivalents.
  • String Translation Mappers - Translates a given message into the current language using the active locale and an optional translation domain.
  • Automatic Service Registration - Makes any class in the source directory available as a service that is instantiated only when requested and reused across the application.
  • Callable Service Injectors - Provides the ability to inject invokable services or closures as constructor arguments in the dependency injection container.
  • Directory Service Importers - Provides a configuration method to register all classes in a directory as services using glob patterns.
  • Service Containers - Provides a service container with autowiring, parameter injection, and service definition management.
  • Functional Interface Adapters - Provides a way to generate adapter classes that implement a single-method interface by forwarding to another service.
  • Multiple Instance Registrators - Provides the ability to register multiple services from the same class with different arguments and unique identifiers.
  • Global Argument Binders - Provides global argument binding for constructor arguments across all services in the dependency injection container.
  • Internationalized Templates - Applies the translation filter or tag to strings and variables inside Twig templates to output localized text.
  • HTTP Method Restrictions - Restricts which HTTP verbs a route responds to, enabling different behavior for GET, POST, and other methods.
  • Controller Argument Resolvers - Provides automatic service injection into controller arguments via type-hinted parameters.
  • XLIFF File Loaders - Loads translation strings from XLIFF files supporting versions 1.2 through 2.2.
  • Locale Translation Files - Organizes translations into domain.locale.format files with override priority across application bundles.
  • Locale Fallback Chains - Defines prioritized fallback locale chains consulted when a translation key is missing from the primary locale.
  • Automatic Constructor Injection - Resolves constructor type-hints to the matching service from the container without manual wiring.
  • Pluralization and Interpolation Engines - Converts XLIFF 2.2 PGS attributes into ICU MessageFormat strings for locale-aware plural, gender, and select handling.
  • Pluralization Rules - Applies language-specific plural rules to select the correct grammatical form for a numeric count.
  • ICU Message Parsing - Provides ICU MessageFormat parsing and processing for pluralization, gender, and conditional selection in translations.
  • Translation Message Domains - Organizes translatable strings into named domains for modular translation catalogs across application parts.
  • Automatic Service Taggers - Provides automatic service tagging based on implemented interfaces for dependency injection configuration.
  • Translation Keys - Translates strings by looking up semantic keys instead of source text.
  • Accept-Language Locale Settings - Automatically sets the request locale from the Accept-Language header for locale-aware routing.
  • Service Implementation Selectors - Provides a mechanism to override autowired services by specifying a different service identifier for a constructor argument.
  • URL Route Mapping - Maps URL patterns to controller methods, invoking the appropriate handler when a route matches.
  • Locale Fallback Mechanisms - Defines a prioritized chain of fallback locales for resolving missing translations.
  • Key-Based String Localizations - Implements key-based string lookup that decouples source text from localized versions in translation catalogs.
  • Localized Routing - Defines unique URL paths per locale and automatically sets the request locale on route match.
  • PHP Translation Libraries - Provides a complete translation framework for PHP applications with message catalogs, locale handling, and XLIFF support.
  • ICU MessageFormat Translators - Provides a translator that processes ICU MessageFormat strings for complex pluralization and gender handling.
  • Template-to-Response Rendering - Renders Twig templates into HTTP responses with provided variables.
  • Route Parameter Validation - Constrains route parameter values using regular expressions to ensure only matching URLs are accepted.
  • Route Parameter Accessors - Provides access to the matched route's name and parameters from the request object or global variable.
  • Route Parameter Captures - Allows route parameters to be optional with default values, enabling flexible URL matching.
  • Route Grouping - Supports grouping routes under common prefixes and defaults to reduce repetition in route definitions.
  • Route Naming Systems - Implements a route naming system that generates URLs from named routes across controllers and templates.
  • Named Route Redirects - Configures routes to issue redirects to other URLs or named routes without writing a controller.
  • URL Routing Engines - Provides a URL routing engine that generates URLs from named routes for links and redirects.
  • Default Translation Domains - Sets a default translation domain for all translation calls within a template.
  • Session-Based Locale Persistence - Persists the user's locale in the session for consistent language across requests.
  • Dynamic Locale Switching - Changes the application locale for a block of code or callback without affecting the rest of the request.
  • Translation String Contexts - Stores translator-facing context notes inside XLIFF 2 files to clarify the meaning or usage of strings.
  • Expression-Based Translation Messages - Evaluates dynamic expressions inside translation messages for context-aware output.
  • Provider Push-Pull Interfaces - Provides a push-pull abstraction for synchronizing translation catalogs with third-party localization services.
  • Unused Translation Key Detectors - Scans templates and code to identify translation keys that are missing from catalogs or no longer used.
  • Deferred Translation Objects - Provides Translatable objects that store message IDs and parameters for deferred rendering in templates.
  • Enabled Locale Restrictions - Restricts translation generation and routing to a configured set of enabled locales.
  • Translation File Validators - Ships console commands to lint and validate YAML and XLIFF translation file syntax.
  • Conditional Message Selectors - Selects between alternative translations based on a variable's value for gendered or conditional text.
  • Translation Extraction - Scans templates and code for translatable strings and updates translation files via console commands.
  • Source Code Translation Extractors - Scans PHP and Twig source files to extract translatable strings and synchronize translation catalogs.
  • Ordinal Formatters - Provides locale-aware ordinal number formatting via the IntlNumberFormatter component.
  • Translation Format Registrations - Registers custom loaders and dumpers for non-standard translation file formats.
  • Deferred Translation Objects - Ships translatable objects that defer rendering until output is needed, storing parameters for later use.
  • Session Flash Messaging - Stores a notification message in the session that is automatically removed after it is displayed to the user.
  • Star-Verlauf

    Star-Verlauf für symfony/translationStar-Verlauf für symfony/translation

    Kuratierte Suchen mit Translation

    Handverlesene Sammlungen, in denen Translation vorkommt.
    • Bibliotheken für Internationalisierung und Lokalisierung

    Open-Source-Alternativen zu Translation

    Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Translation.
    • codeigniter4/codeigniter4Avatar von codeigniter4

      codeigniter4/CodeIgniter4

      5,924Auf GitHub ansehen↗

      CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web applications. It provides a lightweight toolkit with minimal configuration, organizing application logic into controllers, models, and views for clean separation of concerns. The framework includes a fluent query builder for constructing SQL statements programmatically, PSR-4 autoloading with namespace mapping, and a service-based dependency injection container for managing shared class instances. The framework distinguishes itself through its comprehensive set of built-in tools

      PHPcodeignitercodeigniter4framework-php
      Auf GitHub ansehen↗5,924
    • symfony/routingAvatar von symfony

      symfony/routing

      7,618Auf GitHub ansehen↗

      This PHP routing library is an HTTP request router and matcher designed to map incoming URL paths to specific controller actions using defined patterns and configuration. It serves as a programmatic interface for defining, loading, and resolving URL patterns, while providing a URL generator to produce absolute or relative URIs from route names and parameters. The system supports diverse route loading through YAML, XML, PHP arrays, and class attributes, utilizing compiled route matching to optimize performance. It enables sophisticated request handling through regex-based path matching, sub-do

      PHPcomponentphprouter
      Auf GitHub ansehen↗7,618
    • ngx-translate/coreAvatar von ngx-translate

      ngx-translate/core

      4,666Auf GitHub ansehen↗

      This is an internationalization framework for Angular applications. It provides a system for managing multilingual text by mapping keys to translated strings, utilizing a JSON translation manager to load and merge localized assets via HTTP or local sources. The library includes a runtime language switcher to update the user interface instantly without reloading the page and a key extractor to identify translatable strings within source code. The project features an ICU message formatter to handle complex linguistic requirements such as pluralization and gender. It distinguishes itself through

      TypeScript
      Auf GitHub ansehen↗4,666
    • lingui/js-linguiAvatar von lingui

      lingui/js-lingui

      5,786Auf GitHub ansehen↗

      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
      Auf GitHub ansehen↗5,786
    Alle 30 Alternativen zu Translation anzeigen→

    Häufig gestellte Fragen

    Was macht symfony/translation?

    Symfony Translation is a PHP library and framework component for internationalizing applications. It provides a complete system for managing message catalogs, handling locale-aware string translation, and formatting messages using ICU MessageFormat syntax to support pluralization, gender, and conditional selection. The component organizes translatable strings into named domains, supports key-based lookup that decouples source text from localized versions, and offers…

    Was sind die Hauptfunktionen von symfony/translation?

    Die Hauptfunktionen von symfony/translation sind: Internationalization Libraries, Translation Placeholder Substitutions, XLIFF Extraction and Compilation, ICU MessageFormat Placeholders, Message Domain Organization, I18n Message Extraction, String Localization, String Translation Mappers.

    Welche Open-Source-Alternativen gibt es zu symfony/translation?

    Open-Source-Alternativen zu symfony/translation sind unter anderem: codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… symfony/routing — This PHP routing library is an HTTP request router and matcher designed to map incoming URL paths to specific… ngx-translate/core — This is an internationalization framework for Angular applications. It provides a system for managing multilingual… lingui/js-lingui — Lingui is a JavaScript internationalization library that provides a framework-agnostic core with bindings for React,… laravel/laravel — Laravel is a comprehensive full-stack web framework designed for building scalable server-side applications. It… gobuffalo/buffalo — Buffalo is a comprehensive MVC web framework and full-stack toolchain for building web applications in Go. It provides…