function addLocale(context, payload) {
      context.commit({
        type: 'ADD_LOCALE',
        locale: payload.locale,
        translations: payload.translations
      });
    }
function addLocale(context, payload) {
      context.commit({
        type: 'ADD_LOCALE',
        locale: payload.locale,
        translations: payload.translations
      });
    }
function addLocale ( context , payload ) { context . commit ( { type : 'ADD_LOCALE' , locale : payload . locale , translations : payload . translations } ) ; }
add or extend a locale with translations
add or extend a locale with translations