-
-
Notifications
You must be signed in to change notification settings - Fork 956
feat(QTI): implement Text Entry Interaction viewer #14993
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
base: develop
Are you sure you want to change the base?
Changes from all commits
954d39e
42ac608
a9315b9
09ac785
90d2b8f
e355c8d
8be89dd
a42e2e6
840fa45
1f15cbb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -215,6 +215,8 @@ | |
| environmentIdentifier: __version, | ||
| }, | ||
| ), | ||
| 'lang', | ||
| computed(() => props.lang), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. blocking:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. blocking: |
||
| ); | ||
| provide( | ||
|
|
||
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.
blocking:
langis never provided, so all numeral localization is dead code. Two independent defects on these two lines:provide('QTI_CONTEXT', <computed>). Vue'sprovide(key, value)takes two arguments — these are silently dropped and no'lang'key is ever registered.undefined: this component declares nopropsoption (grep -n props QTIViewer.vuereturns only thesetup(props, context)signature and this line), soprops.langisundefined.Downstream,
AssessmentItem.vue:105andTextEntryInteraction.vue:117bothinject('lang', ref(null))and getnull.<NumericKeypad :lang="null">renders ASCII glyphs, andlocalizeNumerals(lastCommittedRaw, undefined)atTextEntryInteraction.vue:257no-ops — failing two #14992 acceptance criteria (localized keypad glyphs; report-mode redisplay in the content's numeral system).The content language is already to hand:
useContentViewer(context)returnslang(packages/kolibri/composables/useContentViewer.js:209), but the destructure at lines 38-47 omits it. Addlangthere, drop these two stray arguments, and add a separateprovide('lang', lang);.