id | title |
---|---|
changelog |
Changelog |
Added support for require aliases - ttag-org/babel-plugin-ttag#112
1.3.x version comes with a couple important changes:
Added discover
and numberedExpressions
- https://github.com/ttag-org/ttag-cli#update-opts-pofile-src
gettext
has a default alias - _
.
All dependencies were updated to use @babel 7
Read more about details in our blog
Added po2json
command (thanks @vharitonsky - ttag-org/ttag-cli#40)
Fix for addComments
- ttag-org/babel-plugin-ttag#105
ttag now can discover translations from require
and can be used in purely nodejs projects with commonjs modules. #44
Fixed behavior for untranslated strings - #111
Renaming project to ttag
and babel-ttag-plugin
- Deleted
setDefaultHeaders
method. You should call new setDefaultLang to change the default language. - removed
c-3po/loader
andgettext-parser
dependency, beacause it is little bit out of the scope of the library. You should import and call parser separately.
import gt from 'gettext-parser';
import fs from 'fs';
gt.po.parse(fs.readFileSync('file.po'));
- Deleted
defaultHeaders
setting from the config. You should use defaultLang instead. - Added new setting numberedExpressions to allow any expressions inside translated strings.
Fixed issue with contexts extraction
Added typescript types definitions PR-89 PR-88
- Added context's feature to c-3po lib and babel-plugin-c-3po see doc
- Validation for libarary (addLocale, ngettext).
- Skipped deprecated replaceVariableNames argument for addLocale func.
Fixed multiline for jt PR
Implemented useLocales method PR
Validation fix for the computed properties PR
Fixes for fuzzy translations issue - 68
Validation fix for the computed properties PR
Validation fix for the computed properties PR
Add validation for variable expressions mismatch. PR
Fix for multiline translations. PR
Fixed extraction for member expressions with computed properties. PR
Removed module attribute from package.json.
Fix for member expressions extraction with this
. (checkout PR for the details)
Fix for ngettext
validation in jsx (multiple presets issue).
Renamed setHeaders
to setDefaultHeaders
for consistency with babel plugin setting.
Applied sort for file references. Can be handy for avoiding merge conflicts.
- Default headers setup - doc
- Multiline support for c-3po lib + setDedent setting - doc
- Tutorial about development and production setup with c-3po and webpack
- Removed
nt
from the core lib. pkg.module
support (details here)
Migration guide - from 0.4.x to 0.5.x
Extracted format changed from ${ 0 }
to ${ name }
.