Toggle navigation
Home
▼ Details
Products and pricing
Chart gallery
User stories
Text analytics
CDC NAMCS Library
Blog
Tutorials
Contact
Sign in
Post Editor
← All help posts
View post
Save
SERMO surveys are programmed with multiple languages based on where the survey is fielded. The default language is set to be English if exist, otherwise be the first language programmed. To change the language, use the following code in precalculate or developer console. For example, German is "7": ``` function setLanguage(idx) { protobi.getDimensions().forEach(function(dim) { if(dim.get('titles')) dim.set('title', dim.get('titles')[idx] || dim.get('titles')[9]); var format = {}; if(dim.get('scales')) { Object.keys(dim.get('scales')).forEach(function(f){format[f] = dim.get('scales')[f][idx] || dim.get('scales')[f][9]}); dim.set('format', format); } }) } setLanguage(7); protobi.getDimension("rdout").set({"format": { "1": "Pass" }}); ``` For more information regarding JavaScript commands, search JavaScript under tutorials
Publishing
Date
Status
Published
Draft
Slug
edit
Content
Thumbnail
Categories
Manage
New to Protobi?
Charts
Making Changes
Intermediate topics for editors
Frequently Asked Questions
SERMO Topics
Tutorial Pages
Internal Docs
Data Processing
Videos
Obsolete
GSG Admin
SERMO Admin
GSG Topics
How to...
Basics for viewers
Basics for editors
For project admins
Advanced topics
Assessments
Articles (in-progress)
New and updated articles
Process data in Protobi
superseded
Text open-end questions
Troubleshooting
Tracking studies
Organizing the view
API References
Tools
AI Database
Checking AI...
Convert to MD
Danger zone
Delete