Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feat: add plugin-translate#3574

Open
courtney-bryce-hilton wants to merge 6 commits into
jspsych:main from
courtney-bryce-hilton:feature-plugin-translate
Open

Feat: add plugin-translate #3574
courtney-bryce-hilton wants to merge 6 commits into
jspsych:main from
courtney-bryce-hilton:feature-plugin-translate

Conversation

@courtney-bryce-hilton

@courtney-bryce-hilton courtney-bryce-hilton commented Jul 26, 2025

Copy link
Copy Markdown

This PR adds my initial pass at putting together the jsPsychTranslate plugin to facilitate multilingual experiments, based on discussions with Becky and Josh (as well as Melissa and Sam; as part of the POSE project).

changeset-bot Bot commented Jul 28, 2025
edited
Loading

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 793305a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown
Contributor

@courtney-bryce-hilton this looks great - very exciting!
I still need to try this out. But just having looked over the PR, I have some minor suggestions for changes: a little more explanation in the docs about how the plugin can/should be used, and additional tests. Should I direct my changes at your fork/branch, or edit this PR directly? cc @jodeleeuw

Copy link
Copy Markdown
Author

Thanks Becky!

Feel free to edit the PR directly if that's easier. Whatever you'd prefer.

becky-gilbert reacted with thumbs up emoji

Comment thread package-lock.json
"dependencies": {
"regenerator-runtime": "^0.14.0"
},
"version": "7.28.2",

@becky-gilbert becky-gilbert Jul 30, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

babel/runtime updated because of it's listed as an i18next dependency with version specified as "^7.27.6".

courtney-bryce-hilton reacted with thumbs up emoji
Comment on lines +147 to +149
dropdownEl.style.fontSize = "14px";
dropdownEl.style.fontFamily = "Open Sans, Arial', sans-serif";
dropdownEl.style.padding = "4px";

@becky-gilbert becky-gilbert Jul 30, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Added this to match the style used in the only other select elements I could find in jsPsych (other than in the survey plugin), which are written as inline style in the initialize-camera and initialize-microphone plugins. This should probably factored out of all of the plugins and moved into the jspsych.css file as a jspsych-dropdown class. Do we want to do that in this PR?

courtney-bryce-hilton reacted with thumbs up emoji

@courtney-bryce-hilton courtney-bryce-hilton Jul 31, 2025

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yea, that'd be a good idea I think.

Actually I had left the styling for the dropdown blank because I wasn't sure what default jspsych styling to apply and I couldn't find anything in jspsych.css for it.

Should we just create a jspsych-dropdown class or something?

@becky-gilbert becky-gilbert Jul 31, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sounds good to me! We should probably wait for a 👍 from @jodeleeuw because the CSS change will require a jspsych core release. And we'll need to tell people to use the translate plugin with that upcoming jsPsych core version rather than just v8 (either make it a formal dependency or just recommend it in the docs).

courtney-bryce-hilton reacted with thumbs up emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@becky-gilbert becky-gilbert becky-gilbert left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /