Feedback Aide API Methods
setLabelBundle()
Allows developers to override the default en-US language labels of the app.
You would want to call this method when you want to apply your localized language labels for the app.
If there is any rendered UI on the screen, the labels of those UI will change to reflect the provided labels.
Examples
await feedbackApp.setLabelBundle({
"labels": {
"save": "保存",
"stimulus_show_less": "少なく表示",
"stimulus_show_more": "もっと見る"
}
});
Arguments
-
options object
Object containing the labels to override the default en-US labels.
-
labels object
The labels to be used for overriding the default labels.
See the list below for all the available en-US labels you can override.
comment_summary_of_feedback_label
Summary of feedbackcomment_max_char_limit
{{count}} / {{charLimit}} character limiterror_ai_grading_credits_unavailable
Credits unavailable for AI grading. You may continue to grade manually.error_internal_server_error
Unexpected error occurred while grading.error_save_feedback_failed
Unexpected error occurred while saving score. Please check your internet connection and try saving again.feedback_summary_char_limit
{{count}} / {{charLimit}} character limitinsufficient_to_grade
Not scorablelegend_ai_graded
Feedback Aidelegend_manual_graded
Manual gradingretry_grading
Retry gradingsave_button_label_save
Savesave_button_label_saved
Savedsave_button_label_saving
Savingscore_max_score
{{score}} / {{maxScore}}score_total_score
Total scorescore_your_score
Your scorespinner_feedback_aide_grading
Feedback Aide gradingspinner_loading
Loading...stimulus_show_less
Show lessstimulus_show_more
"Show more"
-
Return value
Type Promise
When the promise resolves, it will indicate that the label bundle has been set successfully.