/*!
 * OpenUI5
 * (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 */
sap.ui.define([
	"sap/base/strings/formatMessage"
], function (
	formatMessage
) {
	"use strict";

	/**
	 * Contains functions that can format text
	 *
	 * @namespace
	 * @private
	 */
	var oTextFormatters = {

		/**
		 * @param {string} sPattern A pattern string
		 * @param {any[]} aValues The values to be used instead of the placeholders
		 * @returns {string} The formatted text
		 */
		text: function (sPattern, aValues) {
			return formatMessage(sPattern, aValues);
		}

	};

	return oTextFormatters;
});