Releases: printful/php-gettext-cms
Releases · printful/php-gettext-cms
Add TypeScript file scanning, bump PHP version requirements
Upgrade dependencies. PHP8 support.
Prepared code for PHP8.
Improve javascript directives
add v directives to scanner config (#6) Co-authored-by: Viktor Morgunov <viktor.morgunov@printful.com>
Allow passing locales to manager for file export
v1.9.1 Allow passing locales for file export with a fallback to default loca…
Use LC_MESSAGES, LC_TIME when setting locale.
Don't use LC_ALL for setting locale, only LC_MESSAGES and LC_TIME to prevent number localization (when casting float to string e.g.)
Handle files without extensions
v1.8.3 Handle files without extensions
Various improvements
- Format code to PSR-12
- Public constructor for MessageManager
- Added MessageArrayRepository (former Stub class for tests)
Significant speed increase for multiple domain scan
Multi domain scan speed increase (#2) Significant speed increase when scanning for multiple domains
Allow scanning for specific domains, and option to skip unused translation disabling.
\Printful\GettextCms\MessageExtractor::extract now accepts a third parameter - $domains. Allows specifying which domains to scan for.
\Printful\GettextCms\MessageManager::extractAndSaveFromFiles now accepts a parameters $domains and $disableUnusedTranslations that allows skipping the unused translation disabling.
Downgrade PHP version requirement to 7.0
v1.7.1 Downgrade composer requirement to 7.0