New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow passing a 'translations' object in the configuration #15734
Allow passing a 'translations' object in the configuration #15734
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment asking for a small change. Otherwise the rest of the PR looks fine.
I tested these changes with new translations generated using Rollup, and a quick test shows that both pieces work well together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small suggestion to change/update, other than that - PR looks fine 👍
/** | ||
* We don't pass translations to the config, because its behavior of splitting keys | ||
* with dots (e.g. `resize.width` => `resize: { width }`) breaks the translations. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
* We don't pass translations to the config, because its behavior of splitting keys | |
* with dots (e.g. `resize.width` => `resize: { width }`) breaks the translations. | |
*/ | |
// We don't pass translations to the config, because its behavior of splitting keys | |
// with dots (e.g. `resize.width` => `resize: { width }`) breaks the translations. |
ad85fdf
to
2ba169b
Compare
Experimental handling of style and class attribute conversion. Added tests ensuring proper consumables are consumed for style and class attributes. Added tests proper downcast of style and class attributes. Docs: Fix media embed preview demo.
Fix license header. Remove redundant testColor from toolbar in test.
Register custom element on the editor side. TokenIgnores configuration extended to ignore CKEditor package names. Internal: Vale evaluation. [skip ci] Docs: update TS version requirement. [short flow] Docs: TS info. [short flow] Add new rule to enforce correct imports of the SVG icons (#15705) Internal: Add new ESLint rule to enforce correct imports of the SVG icons. Closes #15704. Docs: add additional info about the source code of the drag-drop demo. Closes #15722 Update packages/ckeditor5-clipboard/docs/features/drag-drop.md Narrow down the condition to check whether to use the AutoLink plugin. AutoLink shoudl work on paste not on drag method. Remove comment. Improved the Features index page using Vale. Docs: rewording. [short flow] Fix(ui): List view item deregistration. Fix(ui): List view item deregistration. Test: List separator view registration FocusCycler docs update. Docs: updating autosave install. Docs: updating the keyboards shortcuts table. Fix and tests. Docs: adding release dates to releases. Internal: Vale evaluation. [skip ci] Other (source-editing): Source editing will now throw when used with real-time collaboration. Added `sourceEditing.allowCollaborationFeatures` configuration flag that suppresses the error and allows to use both features together. Fixed leaked DOM element in test. Used better types. Fixed code formatting. Other: Updated translations. [skip ci] Move translate type to utils. Revert "Merge branch 'master' into ck/15713-allow-passing-a-translations-object-in-the-configuration" This reverts commit 0c7c1ee, reversing changes made to 0cfc719. Code review fixes.
2ba169b
to
57d2c2f
Compare
Due reverts in history we decided move PR to new one here: #15792 |
Suggested merge commit message (convention)
Feature (core,utils): Should use translations which passed in config. Closes #15713.
Additional information
For example – encountered issues, assumptions you had to make, other affected tickets, etc.