Skip to content
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

Conversation

illia-stv
Copy link
Contributor

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.

packages/ckeditor5-core/src/editor/editor.ts Outdated Show resolved Hide resolved
packages/ckeditor5-core/src/editor/editorconfig.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/locale.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/locale.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/locale.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/translation-service.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/translation-service.ts Outdated Show resolved Hide resolved
@illia-stv illia-stv self-assigned this Jan 25, 2024
packages/ckeditor5-utils/src/locale.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/translation-service.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/locale.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/locale.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/locale.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/locale.ts Outdated Show resolved Hide resolved
packages/ckeditor5-core/src/editor/editorconfig.ts Outdated Show resolved Hide resolved
packages/ckeditor5-core/src/context.ts Show resolved Hide resolved
packages/ckeditor5-utils/src/translation-service.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/translation-service.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/translation-service.ts Outdated Show resolved Hide resolved
Copy link
Member

@filipsobol filipsobol left a 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.

packages/ckeditor5-core/src/editor/editor.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@pszczesniak pszczesniak left a 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 👍

packages/ckeditor5-utils/src/translation-service.ts Outdated Show resolved Hide resolved
packages/ckeditor5-core/src/context.ts Outdated Show resolved Hide resolved
Comment on lines +281 to +284
/**
* 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.
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/**
* 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.

packages/ckeditor5-core/src/editor/editorconfig.ts Outdated Show resolved Hide resolved
packages/ckeditor5-core/src/editor/editor.ts Show resolved Hide resolved
packages/ckeditor5-utils/src/locale.ts Outdated Show resolved Hide resolved
packages/ckeditor5-utils/src/translation-service.ts Outdated Show resolved Hide resolved
@illia-stv illia-stv force-pushed the ck/15713-allow-passing-a-translations-object-in-the-configuration branch from ad85fdf to 2ba169b Compare February 2, 2024 11:18
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.
@illia-stv illia-stv force-pushed the ck/15713-allow-passing-a-translations-object-in-the-configuration branch from 2ba169b to 57d2c2f Compare February 2, 2024 11:44
@illia-stv illia-stv closed this Feb 2, 2024
@illia-stv
Copy link
Contributor Author

illia-stv commented Feb 2, 2024

Due reverts in history we decided move PR to new one here: #15792

@arkflpc arkflpc deleted the ck/15713-allow-passing-a-translations-object-in-the-configuration branch February 2, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New installation methods] Allow passing a translations object in the configuration
5 participants