Added option to translate placeholders without a context

This commit is contained in:
Auxilor
2023-04-29 15:03:02 +01:00
parent 7eac60146f
commit 469be73ada

View File

@@ -198,6 +198,17 @@ public final class PlaceholderManager {
);
}
/**
* Translate all placeholders without a placeholder context.
*
* @param text The text that may contain placeholders to translate.
* @return The text, translated.
*/
@NotNull
public static String translatePlaceholders(@NotNull final String text) {
return Eco.get().translatePlaceholders(text, PlaceholderContext.EMPTY);
}
/**
* Translate all placeholders in a translation context.
*