default boolean canTranslate(final @NotNull String key, final @NotNull Locale locale) {
    final Component translatedValue = this.translate(Component.translatable(Objects.requireNonNull(key, "key")), Objects.requireNonNull(locale, "locale"));
    if (translatedValue != null) return true;
    return this.translate(key, locale) != null;
  }
Checks if this translator can translate the given key and locale pair.

@param key the key
@param locale the locale
@return {@code true} if this translator will return a non-null value for either of
    the two {@code translate} methods
@since 4.20.0
api/src/main/java/net/kyori/adventure/translation/Translator.java