code: function REPLACE_LOCALE(state, payload) {
        // reduce the given translations to a single-depth tree
        var translations = flattenTranslations(payload.translations); // replace the translations entirely
  
        state.translations[payload.locale] = translations; // make sure to notify vue of changes (this might break with new vue versions)
  
        try {
          if (state.translations.__ob__) {
            state.translations.__ob__.dep.notify();
          }
        } catch (ex) {}
      }
docs: replace existing locale information with new translations