-
Notifications
You must be signed in to change notification settings - Fork 637
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
i18n additions in support of Perseus i18nization #1869
i18n additions in support of Perseus i18nization #1869
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1869 +/- ##
==========================================
+ Coverage 76.89% 77.1% +0.21%
==========================================
Files 170 170
Lines 6228 6259 +31
Branches 791 796 +5
==========================================
+ Hits 4789 4826 +37
+ Misses 1295 1289 -6
Partials 144 144
Continue to review full report at Codecov.
|
fb18ded
to
f58af4d
Compare
rtl or ltr css depending on the directionality of its content.
for example for displaying student answers in coach reports.
Allow plugins to set additional node paths for custom loaders used in their build.
…ck2. Add the LoaderOptionsPlugin that ensures that output of loaders is minified.
content Language model. Add support for contentnode language data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still testing. Looks good; just sharing initial comments on the code itself
// We add some custom configuration options to the bundles that webpack 2 dislikes, clean them up here. | ||
bundles.forEach(function(bundle) { | ||
delete bundle.core_name; | ||
delete bundle.coreAPISpec; | ||
if (bundle.nodePaths) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
url => | ||
(languageDirection === languageDirections.RTL && | ||
url.includes(languageDirections.RTL)) || | ||
!url.includes('css') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
(direction !== languageDirections.RTL && url.includes(languageDirections.RTL)) || | ||
(direction !== languageDirections.LTR && | ||
!url.includes(languageDirections.RTL) && | ||
url.includes('css')) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
module.urlTags = {}; | ||
urls.forEach((url, index) => { | ||
module.urlTags[url] = scriptsArray[index]; | ||
}); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
interactive: { | ||
type: Boolean, | ||
default: true, | ||
}, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all seems to work for me.
I did notice that perseus now seems hard-coded to reference kolibri v0.6 on crowdin which gave me pause. I wouldn't mind learning a bit more about the way that translations between these two projects are intertwined.
We could make a new project for the perseus plugin which would clean this up for the future. |
Summary
Most of these changes are build related that I have put in, so that the i18nization of the perseus render is made possible.
Also adds the
interactive
prop which allows signalling that an otherwise interactive content item should be rendered uninteractively.Note that this now also includes an upgrade for the perseus renderer, with the following diff: learningequality/kolibri-exercise-perseus-plugin@v0.6.16...v0.7.0