Closed Pr0methean closed 5 years ago
It looks like ICU4J is distributed under a license I hadn't looked into much before, the Unicode License. I did a little digging, but couldn't find much information on it. Mind spending a bit of time to make sure it is compatible with our project?
According to https://www.gnu.org/licenses/license-list.en.html#Unicode it's indeed compatible with LGPL and GPL.
ICU4J is a 12MB library. Is it worth adding this dependency for a single feature (pretty list formatting), and would there be a simple way to implement it ourselves?
We could extract the list patterns from the CLDR at build time (runtime wouldn't help, since the ZIP file we'd need is 20MB), but that'd be complicated to implement. We'll likely eventually be using ICU4J for more than just list formatting anyway. Why not add Proguard to our build process to remove unused library code?
An alternative would be to drop the word "and" and use a comma-separated list, which I think works in all languages.
Only applies to
/banlist
right now, but will apply to all commands that useCommandUtils.prettyPrint
once the rest are converted to extendGlowVanillaCommand
.