Skip to content

Commit

Permalink
Enable TinyMCE Localisation
Browse files Browse the repository at this point in the history
`app/assets/javascripts/langs/fr_FR.js` was downloaded from https://www.tiny.cloud/get-tiny/language-packages/
  • Loading branch information
aaronskiba committed Aug 15, 2024
1 parent a96bc6e commit 6274c6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/langs/fr_FR.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/javascript/src/utils/tinymce.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

/*
Expand Down

0 comments on commit 6274c6d

Please sign in to comment.