Bind strings to locale

This commit is contained in:
Yokayo 2024-04-11 15:00:29 +07:00 committed by GitHub
parent 0486fe0126
commit a5d3c98e01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5982,7 +5982,7 @@ function getUserAvatarBlock(name) {
const personaName = power_user.personas[name];
const personaDescription = power_user.persona_descriptions[name]?.description;
template.find('.ch_name').text(personaName || '[Unnamed Persona]');
template.find('.ch_description').text(personaDescription || '[No description]').toggleClass('text_muted', !personaDescription);
template.find('.ch_description').text(personaDescription || $('#user_avatar_block').attr('no_desc_text')).toggleClass('text_muted', !personaDescription);
template.attr('imgfile', name);
template.find('.avatar').attr('imgfile', name).attr('title', name);
template.toggleClass('default_persona', name === power_user.default_persona);