Releases: locomotivemtl/charcoal-translator
Releases · locomotivemtl/charcoal-translator
charcoal-translator 0.3.7
Complete commits list: 0.3.6...0.3.7
Summary:
- Added support for custom message formatter as per symfony/translation v3.4.0
- Added
Translation::each()
method to run a callback over each value with locale - Changed
TranslatorConfig::setPaths()
method to use newaddPaths()
method (Amends: abe8206) - Cleanup coding syntax
charcoal-translator 0.3.3
Added
AbstractTestCase
as the basis for the component's test cases- Constant
LocalesManager::DEFAULT_SORT_PRIORITY
- Method
LocalesManager::filterLocales()
for pre-filtering inactive locales and assigning missing structure data
Changed
- Rewrite README
- Cleanup repository; Composer manifest, development dependencies, configs for Travis, PHPUnit, and PHPCS
- Cleanup codebase; syntax, imported namespaces
- Method
LocalesManager::setLocales()
to prepare locales - Split
LocalesManagerTest::testSortedLocales()
into two methods, one for PHP 7 and one for PHP 5
Fixed
- Difference with internal sorting algorithm between PHP 5.6 and PHP 7
- Hard constraints for locomotivemtl/charcoal-config
- Issues reported by PHPStan, PHPCS, and PHPUnit
charcoal-translator 0.3.2
Highlights:
- Add support for sorting locales by priority in
LocalesManager
- Update default "cache_dir" option for
Translator
- Update
TranslationParserScript
charcoal-translator 0.3.1
Highlights:
- Fix + Update tests for locomotivemtl/[email protected]
- Improve
LocalesManager
charcoal-translator 0.3.0
Highlights:
- Updated for locomotivemtl/charcoal-config:0.8
charcoal-translator 0.2.0
- Added a new
sanitize()
method, to sanitize all language strings with a callback.
charcoal-translator 0.1.10
Merge pull request #3 from locomotivemtl/locale-from-host Setting locale from domain/host
charcoal-translator 0.1.7
- Fixed issues with LanguageMiddleware
Warning change middleware's configuration (path should not have the regexp separator anymore).
charcoal-translator 0.1.6
Fix translation replacements when array given.
charcoal-translator 0.1.5
- Create message_selector in Translator's constructor if its not set from the outside
- This fixes a breaking change from last "internal" commit.