dist/vuex-i18n.es.js
function REMOVE_LOCALE(state, payload) {
      // check if the given locale is present in the state
      if (state.translations.hasOwnProperty(payload.locale)) {
        // check if the current locale is the given locale to remvoe
        if (state.locale === payload.locale) {
          // reset the current locale
          state.locale = null;
        } // create a copy of the translations object


        var translationCopy = Object.assign({}, state.translations); // remove the given locale

        delete translationCopy[payload.locale]; // set the state to the new object

        state.translations = translationCopy;
      }
    }
function REMOVE_LOCALE(state, payload) {
      // check if the given locale is present in the state
      if (state.translations.hasOwnProperty(payload.locale)) {
        // check if the current locale is the given locale to remvoe
        if (state.locale === payload.locale) {
          // reset the current locale
          state.locale = null;
        } // create a copy of the translations object


        var translationCopy = Object.assign({}, state.translations); // remove the given locale

        delete translationCopy[payload.locale]; // set the state to the new object

        state.translations = translationCopy;
      }
    }
function REMOVE_LOCALE ( state , payload ) { // check if the given locale is present in the state if ( state . translations . hasOwnProperty ( payload . locale ) ) { // check if the current locale is the given locale to remvoe if ( state . locale === payload . locale ) { // reset the current locale state . locale = null ; } // create a copy of the translations object var translationCopy = Object . assign ( { } , state . translations ) ; // remove the given locale delete translationCopy [ payload . locale ] ; // set the state to the new object state . translations = translationCopy ; } }
remove a locale from the store
remove a locale from the store