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

Enable TinyMCE Localisation and Add fr_FR.js Language Pack #854

Open
wants to merge 1 commit into
base: integration
Choose a base branch
from

Conversation

aaronskiba
Copy link
Collaborator

Fixes #703

Changes proposed in this PR:

`app/assets/javascripts/langs/fr_FR.js` was downloaded from https://www.tiny.cloud/get-tiny/language-packages/
Copy link

1 Error
🚫 Please include a CHANGELOG entry. You can find it at CHANGELOG.md.

Generated by 🚫 Danger

@@ -53,6 +53,7 @@ export const defaultOptions = {
// is not supported, see issue https://github.com/tinymce/tinymce/issues/358
skin_url: '/tinymce/skins/oxide',
content_css: ['/tinymce/tinymce.css'],
...(window.i18nLocale === 'fr-CA' && { language: 'fr_FR' }) // handles language switching for DMP Assistant
Copy link
Collaborator

Choose a reason for hiding this comment

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

What if the window.i18nLocale is set to english but the user sets the language to french ? Sorry if I am missing part of the context here.

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.

2 participants