private @Nullable T translate(final @NotNull Locale locale) {
      T format = this.translations.get(requireNonNull(locale, "locale"));
      if (format == null) {
        format = this.translations.get(new Locale(locale.getLanguage())); // try without country
        if (format == null) {
          format = this.translations.get(AbstractTranslationStore.this.defaultLocale); // try local default locale
          if (format == null) {
            format = this.translations.get(TranslationLocales.global()); // try global default locale
          }
        }
      }
      return format;
    }
Returns a translation for a given key and locale, if any.

@param key the key
@param locale the locale
@return the translation, or {@code null} if none exists for this key
@since 4.20.0
api/src/main/java/net/kyori/adventure/translation/AbstractTranslationStore.java