-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Group mod credits by role instead of bunching them together #706
Group mod credits by role instead of bunching them together #706
Conversation
It looks kind of wrong for some reason, probably because it's using singular words instead of plural words. |
I don't think it's really wise to automatically add the s since it won't always work. Consider someone using the word |
5592068
to
8b1937a
Compare
8b1937a
to
135d0e7
Compare
|
||
// Add an s to the default untranslated string if it ends in r since this | ||
// Fixes common role names people use in English (e.g. Author -> Authors) | ||
var fallback = roleName.endsWith("r") ? roleName + "s" : roleName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems a bit strange but I guess it's fine lol. we can remove if it causes issues
Resolves #652 by grouping the credits by role names (Fabric mod preview / Quilt mod preview).
This is mostly useful on Quilt as we can actually assign contributor roles, but splits it into Authors and Contributors on Fabric.
I was not sure whether role names should be translatable as there is no standard for their names, so they are just displayed literally.