refactor(ui): give every message one friendly, ungendered voice
Members read all replies as one voice, so the wording now lives in one place:
the shared titles, the list marker and the "what to do next" hint come from
src/ui/embeds.js, and every module follows them.
An error explains the cause, recalls the rule and offers the way out instead of
blaming; a success says what happens next. Nothing agrees on the gender of a
person ("utilisateur", "cher/chère", "ravie"), which also keeps the sentences
shorter. Two tests lock the shared titles and reject gendered descriptions.
This commit is contained in:
31 files changed
+469
-201
No files matched your search
@@ -20,6 +20,14 @@ export const ACCESS_LEVELS = Object.freeze({
|
||||
OWNER: 3,
|
||||
});
|
||||
|
||||
/** Same names for the same levels in every message (M12-T02). */
|
||||
export const ACCESS_LABELS = Object.freeze({
|
||||
[ACCESS_LEVELS.USER]: 'Membre',
|
||||
[ACCESS_LEVELS.STAFF]: 'Staff',
|
||||
[ACCESS_LEVELS.DEV]: 'Dev',
|
||||
[ACCESS_LEVELS.OWNER]: 'Owner',
|
||||
});
|
||||
|
||||
/** Moderation actions: Discord label, embed color and stored duration (M8). */
|
||||
export const MODERATION_ACTIONS = Object.freeze({
|
||||
warn: { label: 'Avertissement', color: COLORS.warning, duration: false },
|
||||
@@ -32,7 +40,7 @@ export const MODERATION_ACTIONS = Object.freeze({
|
||||
|
||||
/** Ticket categories and who can see them (M0-T05 / M6-T01). */
|
||||
export const TICKET_CATEGORIES = Object.freeze([
|
||||
{ id: 'support', label: 'Support utilisateur', scope: ['staff', 'owner'] },
|
||||
{ id: 'support', label: 'Aide et support', scope: ['staff', 'owner'] },
|
||||
{ id: 'bug', label: 'Bug', scope: ['staff', 'dev', 'owner'] },
|
||||
{ id: 'dev-question', label: 'Question de développement', scope: ['dev', 'owner'] },
|
||||
{ id: 'report', label: 'Signalement', scope: ['staff', 'owner'] },
|
||||
|
||||
Reference in new issue
Block a user