extendTranslations(lang, messages) {
    if (!this.loadedLanguages.has(lang)) {
      return;
    }

    const base = this.loadedLanguages.get(lang);
    Object.keys(messages).forEach((key) => {
      base[key] = messages[key];
    });
    this.loadedLanguages.set(lang, base);
  }
/**
   * Add an object full of translations to the given locale.
   * @param {string} lang The language to add them to.
   * @param  {object} messages Strings in the form of
   */
Add an object full of translations to the given locale.
@param {string} lang The language to add them to.
@param  {object} messages Strings in the form of
Add an object full of translations to the given locale . @param { string } lang The language to add them to . @param { object } messages Strings in the form of
extendTranslations(lang, messages) {
    if (!this.loadedLanguages.has(lang)) {
      return;
    }
    const base = this.loadedLanguages.get(lang);
    Object.keys(messages).forEach((key) => {
      base[key] = messages[key];
    });
    this.loadedLanguages.set(lang, base);
  }
extendTranslations ( lang , messages ) { if ( ! this . loadedLanguages . has ( lang ) ) { return ; } const base = this . loadedLanguages . get ( lang ) ; Object . keys ( messages ) . forEach ( ( key ) => { base [ key ] = messages [ key ] ; } ) ; this . loadedLanguages . set ( lang , base ) ; }
Add an object full of translations to the given locale.
Add an object full of translations to the given locale .