Skip to content
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

Make translatables implement ComponentLike #6574

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Add new static method for creating a translatable
Warriorrrr committed Aug 11, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit ec168e22950cf18e141477451e297a95a42012b1
Original file line number Diff line number Diff line change
@@ -32,10 +32,18 @@ private Translatable(String key, Object... args) {
}

public static Translatable of(String key) {
return new Translatable(key);
return translatable(key);
}

public static Translatable of(String key, Object... args) {
return translatable(key, args);
}

public static Translatable translatable(String key) {
return new Translatable(key);
}

public static Translatable translatable(String key, Object... args) {
return new Translatable(key, args);
}