All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.bower_components.globalize.src.message-runtime.js Maven / Gradle / Ivy

There is a newer version: 1.2.2.1-jre17
Show newest version
define([
    "./common/runtime-key",
    "./common/validate/parameter-type/message-variables",
    "./core-runtime",
    "./message/formatter-fn"
], function (runtimeKey, validateParameterTypeMessageVariables, Globalize, messageFormatterFn) {

    Globalize._messageFormatterFn = messageFormatterFn;
    Globalize._messageFormat = {};
    Globalize._validateParameterTypeMessageVariables = validateParameterTypeMessageVariables;

    Globalize.messageFormatter =
        Globalize.prototype.messageFormatter = function (/* path */) {
            return Globalize[
                runtimeKey("messageFormatter", this._locale, [].slice.call(arguments, 0))
                ];
        };

    Globalize.formatMessage =
        Globalize.prototype.formatMessage = function (path /* , variables */) {
            return this.messageFormatter(path).apply({}, [].slice.call(arguments, 1));
        };

    return Globalize;

});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy