Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Removed translation-utils's add() #232

Merged
merged 4 commits into from
Mar 27, 2018
Merged

Removed translation-utils's add() #232

merged 4 commits into from
Mar 27, 2018

Conversation

Reinmar
Copy link
Member

@Reinmar Reinmar commented Mar 27, 2018

Suggested merge commit message (convention)

Other: Removed translation-service~add() function in favor of using safer, always available, manual approach to extending CKEDITOR_TRANSLATIONS global. See ckeditor/ckeditor5#914.

BREAKING CHANGES: The translation-service~add() function was removed. See translation-utils module docs to learn how to add translations.


Object.assign( dictionaries[ lang ], translations );
// Initialize CKEDITOR_TRANSLATIONS if it's not initialized.
if ( !window.CKEDITOR_TRANSLATIONS ) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Again, I think that such an access to the global variable is unsafe in envs like Electron, but let's go with it for now. I'll only change it so it imports the global object from src/global.js.

Copy link
Member Author

Choose a reason for hiding this comment

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

Or maybe I won't... because it's src/dom/global.js. I'll report a followup.

@Reinmar Reinmar merged commit 5ac8ef0 into master Mar 27, 2018
@Reinmar Reinmar deleted the t/ckeditor5/914 branch March 27, 2018 15:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants