-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Translations in third party plugins #1471
Comments
Related: #763 |
As I already wrote on the Gitter channel we provide 3 options for now (and all of them aren't perfect though).
|
The 2nd and 3rd approach don't make sense if the CKEditorWebpack plugin is used 🤦♂️. The translation string are changed to ids during the building process for multiple languages. Thus the |
I'd raise the priority of this issue because we gonna add the i18n to the private plugins soon. The additional problem that we'll need to handle is the lack of translations for private packages available on the Tx. The other issue is that currently there's no way to override an existing translation (AFAIR there was some request for it in the past) Also, this should enable easier testing of the i18n The solution I propose is to add a possibility to add translations to the CKEditor5WebpackPlugin directly, either as a path(s) to the translation files or as a map of translations like: Bear in mind that at some point we might gonna add support for plural forms but in case of plural forms, we could support arrays of possible translations like Alternatively, we could add support for loading additional PO files. Not sure which one will provide the best DX. cc @Reinmar |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
I create this issue to open up a discussion about 3rd party plugins internationalization.
CKEditor 5 uses Transifex for translations handling. The translations are downloaded and built during editor build and then available in language files.
The problem appears when a non-core plugin is developed by an outside developer. AFAIU there is no way to easily make the plugin ready for different translations.
What can we do with this?
The text was updated successfully, but these errors were encountered: