Download the PHP package mistralys/application-localization without Composer
On this page you can find all versions of the php package mistralys/application-localization. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mistralys/application-localization
More information about mistralys/application-localization
Files in mistralys/application-localization
Package application-localization
Short Description PHP and Javascript localization library.
License MIT
Informations about the package application-localization
Application Localization
A PHP and JavaScript localization library that automatically discovers translatable strings in your source files and stores translations in simple INI files. Drop in the built-in editor UI and your team can start translating without touching code.
Features
- Automatic string discovery — scans PHP and JavaScript source files for translation function calls
- Built-in translator UI — a ready-made editor that integrates into any existing interface
- Clientside translations — auto-generated JavaScript include files bring
t()to the browser - Translation context — optional context strings help translators understand ambiguous texts
- Countries, locales & currencies — classes for 19 countries, 18 locales, 10 currencies, and 21 time zones with country-specific formatting
- Locale alias handling — automatically normalizes
uk/gbanden_UK/en_GBmix-ups
Scope note: The included countries, locales, and currencies reflect what is commonly needed in typical european-centric web applications, not a complete i18n universe. See the full list of supported countries and locales.
Requirements
- PHP 8.4 or higher
- Composer
Quick Start
1. Install via Composer
2. Configure the library
3. Translate strings in PHP
4. Translate strings in JavaScript
5. Switch the active locale
Learn More
| Topic | Document |
|---|---|
| Full setup walkthrough | Configuration Guide |
| Translation functions, placeholders & best practices | Translation Functions |
| Countries, currencies & time zones API | Countries, Currencies & Time Zones |
| Supported countries, locales & currencies | Supported countries and locales |
| Changelog | changelog.md |
| Packagist | mistralys/application-localization |
Example
Run composer update in the package folder and open the example/ directory in your
browser (package must be inside your webserver's document root) to see the editor UI live.
Origins
This library grew out of several internal applications before being extracted into a standalone package. It makes no claim of replacing established i18n libraries — it simply solves a specific set of localization needs cleanly and pragmatically.
All versions of application-localization with dependencies
mistralys/php-sprintf-parser Version ^1.0
mistralys/html_quickform2 Version >=2.3.5
mistralys/application-utils-collections Version >=1.2.1
mistralys/changelog-parser Version >=1.0.2
mck89/peast Version >=v1.17.0
php Version ^7.4|^8.0
ext-json Version *
ext-mbstring Version *