All notable changes to fbt
will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
- Fix intlNumUtils class parser and formatter
- Latte support
- Replaced deprecated function
utf8_encode
withmb_convert_encoding
- Unicode characters in fbt::param
- fbt:param now accepts also empty string as a value
- fallback configuration for translations (available for 'translate' command)
- Fix mixed text children with
<br />
in fbt:param
- Cache to improve performance of the
fbt
andfbs
methods
- Fix fbt::sameParam for subject
- Collecting of fbt::param values
- Allow to call customized
\fbt\fbt
implementation for methodsfbt
andfbs
when Laravel package is used
- Redundant file scanning for docblock with the
@fbt
pragma tiger128,3
now generates the same hash as the original implementation
- Detailed information of collecting for fbt collect command
- Config
prettyPrint
(defaulttrue
) to pretty print source strings in a JSON file.
- Jenkins hash generation when using unicode characters in text
- The
.source_strings.json
file is automatically deleted prior to executing thecollect-fbts
command.
- The
rsearch
function now returns anarray
instead of aGenerator
(files are now sorted alphabetically).
- Rendering of text mixed with elements
- Dockblock extraction
- Pronoun attribute
type
when using fbt::pronoun - Disable cache for phrase when using reporting
- Visibility for CollectFbtsService.php
- Command to collect FBT strings
- Pronoun capitalization
intlList
function
- Punctuation when a value ends with it
JsonSerializable
interface to fbtext-mbstring
requirement to composer.json
- Empty node checking
- Command to generate missing translation hashes
- __toString() issue when using inline mode in php < 8.0
- Raw string collecting.
- Check for tags without content.
- Storing already stored hashes.
- --stdin, --pretty flags for command
php ./vendor/bin/fbt translate
- Automatic registration of translations.
- Support PHP >= 7.2.