MCPcopy Index your code
hub / github.com/messageformat/messageformat / setFallback

Method setFallback

packages/runtime/src/messages.mjs:214–217  ·  view source on GitHub ↗

* Set the fallback locale or locales for `lc` * * To disable fallback for the locale, use `setFallback(lc, [])`. * To use the default fallback, use `setFallback(lc, null)`. * * @param {string} lc * @param {string[]|null} fallback * @returns {Messages} The Messages instance, to a

(lc, fallback)

Source from the content-addressed store, hash-verified

212 * @returns {Messages} The Messages instance, to allow for chaining
213 */
214 setFallback(lc, fallback) {
215 this._fallback[lc] = Array.isArray(fallback) ? fallback : null;
216 return this;
217 }
218
219 /**
220 * Check if `key` is a message function for the locale

Callers 1

messages.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected