improve contributor modal & badge

This commit is contained in:
Vendicated 2024-05-02 14:58:31 +02:00
parent 5bc20ba162
commit f54dcb74d7
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
5 changed files with 59 additions and 33 deletions

View file

@ -114,3 +114,7 @@ export function identity<T>(value: T): T {
export const isMobile = navigator.userAgent.includes("Mobi");
export const isPluginDev = (id: string) => Object.hasOwn(DevsById, id);
export function pluralise(amount: number, singular: string, plural = singular + "s") {
return amount === 1 ? `${amount} ${singular}` : `${amount} ${plural}`;
}