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

i18n additions in support of Perseus i18nization #1869

Merged
merged 9 commits into from
Aug 31, 2017

Conversation

rtibbles
Copy link
Member

@rtibbles rtibbles commented Jul 19, 2017

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

@codecov-io
Copy link

codecov-io commented Jul 19, 2017

Codecov Report

Merging #1869 into develop will increase coverage by 0.21%.
The diff coverage is 79.31%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
frontend_build/src/parse_bundle_plugin.js 89.65% <ø> (ø) ⬆️
frontend_build/src/webpack.config.base.js 76.19% <ø> (-2.98%) ⬇️
kolibri/content/hooks.py 53.12% <0%> (ø) ⬆️
kolibri/content/serializers.py 84.24% <100%> (+1.23%) ⬆️
kolibri/content/api.py 56.81% <100%> (+4.84%) ⬆️
kolibri/core/templatetags/kolibri_tags.py 39.47% <100%> (ø) ⬆️
frontend_build/src/read_bundle_plugins.js 90.27% <61.53%> (-6.39%) ⬇️
frontend_build/src/extract_$trs.js 13.38% <0%> (-0.1%) ⬇️
kolibri/tasks/api.py 32.79% <0%> (+0.26%) ⬆️
kolibri/content/models.py 93.6% <0%> (+0.43%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aed7c59...ab842b8. Read the comment docs.

@rtibbles rtibbles force-pushed the i18n_redux branch 2 times, most recently from fb18ded to f58af4d Compare August 28, 2017 16:42
@rtibbles rtibbles added the TODO: needs review Waiting for review label Aug 28, 2017
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.
Copy link
Contributor

@indirectlylit indirectlylit left a 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.

This comment was marked as spam.

This comment was marked as spam.

url =>
(languageDirection === languageDirections.RTL &&
url.includes(languageDirections.RTL)) ||
!url.includes('css')

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

(direction !== languageDirections.RTL && url.includes(languageDirections.RTL)) ||
(direction !== languageDirections.LTR &&
!url.includes(languageDirections.RTL) &&
url.includes('css'))

This comment was marked as spam.

module.urlTags = {};
urls.forEach((url, index) => {
module.urlTags[url] = scriptsArray[index];
});

This comment was marked as spam.

interactive: {
type: Boolean,
default: true,
},

This comment was marked as spam.

This comment was marked as spam.

@rtibbles rtibbles changed the base branch from develop to release-v0.6.x August 30, 2017 20:01
Copy link
Contributor

@indirectlylit indirectlylit left a 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.

@indirectlylit indirectlylit merged commit 5811bd1 into learningequality:release-v0.6.x Aug 31, 2017
@indirectlylit indirectlylit removed the TODO: needs review Waiting for review label Aug 31, 2017
@rtibbles
Copy link
Member Author

We could make a new project for the perseus plugin which would clean this up for the future.

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.

None yet

3 participants