-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #731 from ckeditor/pg/10
Feature (env): Redesigned the API for handling localization in CKEditor 5 sources. Now, the code can be shared in 3rd party plugins created by external developers. See ckeditor/ckeditor5-package-generator#9. Feature (env): The `createPotFiles()` function accepts new flags: * `ignoreUnusedCorePackageContexts` - when set to `true`, unused contexts from the `@ckeditor/ckeditor5-core` package will not be displayed as errors, * `skipLicenseHeader` - when set to `true`, created `*.po` files will not contain the CKEditor 5 license header. Feature (env): The `simplifyLicenseHeader()` function accepts a new flag (`simplifyLicenseHeader`) that allows skipping adding the contribute URL in generated `*.po` files. MAJOR BREAKING CHANGE (env): The `createPotFiles()` function requires the `translationsDirectory` option, which points to the directory where all `*.po` files will be created. MAJOR BREAKING CHANGE (env): The `downloadTranslations()` function requires the following properties:`translationsDirectory` - an absolute path used for resolving paths to packages; `url` - Transifex API URL. MAJOR BREAKING CHANGE (env): The `upload()` function requires the following properties: `translationsDirectory`- points to the directory where all `*.po` files will be created; `url` - Transifex API URL. MAJOR BREAKING CHANGE (env): Removed the `ckeditor5-dev-env-translations` binary script as it worked only for the CKEditor 5 project. Use the following functions instead. `const { createPotFiles, uploadPotFiles, downloadTranslations } = require( '@ckeditor/ckeditor5-dev-env' );`. MAJOR BREAKING CHANGE (env): The `uploadPotFiles()` and `downloadTranslations()` functions require the `token` value passed directly to the script. Use the `require( '@ckeditor/ckeditor5-dev-env/lib/translations/gettoken' )` util for reading the input from the command line. MINOR BREAKING CHANGE (env): All functions in the `transifex-service.js` util require the `url` value when calling API.
- Loading branch information
Showing
19 changed files
with
1,709 additions
and
1,333 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.