formatter

Sets the formatter to be used for formatting translation messages.

Return

The Builder instance, enabling method chaining.

Parameters

formatter

The formatter implementation to be applied, such as Formatter.ICU or Formatter.Sprintf. Determines the strategy for rendering translations with placeholders.


Specifies the formatting strategy to be used for dynamic text translations.

Determines how parameters within translation messages are rendered. The default value is Formatter.ICU, which adheres to the ICU MessageFormat syntax for flexibility in internationalization. The formatter can also be customized by providing an alternative Formatter implementation such as Formatter.Sprintf.

Typically used within the CDN.Builder class to configure translation formatting behavior for the resulting CDN instance.