@Override
  @Deprecated
  default void registerAll(final @NotNull Locale locale, final @NotNull ResourceBundle bundle, final boolean escapeSingleQuotes) {
    this.registerAll(locale, bundle.keySet(), key -> {
      final String format = bundle.getString(key);
      return new MessageFormat(
        escapeSingleQuotes
          ? SINGLE_QUOTE_PATTERN.matcher(format).replaceAll("''")
          : format,
        locale
      );
    });
  }
Registers a resource bundle of translations.

<p>It is highly recommended to create your bundle using {@link UTF8ResourceBundleControl} as your bundle control for UTF-8 support - for example:</p>

<pre>
  final ResourceBundle bundle = ResourceBundle.getBundle("my_bundle", Locale.GERMANY, UTF8ResourceBundleControl.get());
  registry.registerAll(Locale.GERMANY, bundle, false);
</pre>

@param locale a locale
@param bundle a resource bundle
@param escapeSingleQuotes whether to escape single quotes
@throws IllegalArgumentException if a translation key already exists
@see UTF8ResourceBundleControl
@since 4.0.0
@deprecated For removal since 4.20.0. Use {@link TranslationStore#messageFormat(Key)} instead.
api/src/main/java/net/kyori/adventure/translation/TranslationRegistry.java