Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@jjaffeux
Copy link
Contributor

@jjaffeux jjaffeux commented Jul 3, 2025

The key is persona, not name.

Before:
Screenshot 2025-07-04 at 01 11 37

After the fix:
Screenshot 2025-07-04 at 01 10 21

@jjaffeux jjaffeux changed the title FIX: correctly translation automation name FIX: correctly translate automation name Jul 3, 2025
Comment on lines -115 to -125
if (usage.type === "ai_persona") {
return i18n("discourse_ai.llms.usage.ai_persona", {
persona: usage.name,
});
} else if (usage.type === "automation") {
return i18n("discourse_ai.llms.usage.automation", {
name: usage.name,
});
} else {
return i18n("discourse_ai.llms.usage." + usage.type);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we needed all this complexity here, I get that we think name is more accurate than persona for automation, but this forces us to always have a special case for it (and created this bug, as we forgot the special case at another place). Maybe we could also think of a more generic name, like: identifier.

@SamSaffron
Copy link
Member

well it is certainly better than showing something totally broken, going to merge, thanks @jjaffeux

@SamSaffron SamSaffron merged commit 0f90497 into main Jul 4, 2025
6 checks passed
@SamSaffron SamSaffron deleted the translate-automation-name branch July 4, 2025 03:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants