feat: accept short versions of traditional pronouns

This commit is contained in:
Sam 2023-03-30 15:30:34 +02:00
parent 0ce6453bf7
commit 92243d58ac
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
5 changed files with 67 additions and 26 deletions

View file

@ -174,3 +174,12 @@ export const defaultAvatars = [
`${PUBLIC_BASE_URL}/default/512.webp`,
`${PUBLIC_BASE_URL}/default/512.jpg`,
];
export interface PronounsJson {
pages: Pronouns;
autocomplete: Pronouns;
}
interface Pronouns {
[key: string]: { pronouns: string[]; display?: string };
}

View file

@ -1,12 +1,22 @@
{
"pronouns": {
"pages": {
"they": { "pronouns": ["they", "them", "their", "theirs", "themself"] },
"they/them": { "pronouns": ["they", "them", "their", "theirs", "themself"] },
"he": { "pronouns": ["he", "him", "his", "his", "himself"] },
"he/him": { "pronouns": ["he", "him", "his", "his", "himself"] },
"she": { "pronouns": ["she", "her", "her", "hers", "herself"] },
"it": { "pronouns": ["it", "it", "its", "its", "itself"], "display": "it/its" }
},
"autocomplete": {
"they/them": { "pronouns": ["they", "them", "their", "theirs", "themself"] },
"they/them (singular)": {
"pronouns": ["they", "them", "their", "theirs", "themself"],
"display": "they/them (singular)"
},
"they/them (plural)": {
"pronouns": ["they", "them", "their", "theirs", "themselves"],
"display": "they/them (plural)"
},
"he/him": { "pronouns": ["he", "him", "his", "his", "himself"] },
"she/her": { "pronouns": ["she", "her", "her", "hers", "herself"] },
"it": { "pronouns": ["it", "it", "its", "its", "itself"], "display": "it/its" },
"it/its": { "pronouns": ["it", "it", "its", "its", "itself"], "display": "it/its" }
}
}