Skip to content

Commit

Permalink
fix: rename locale to elementLocale
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Jun 11, 2021
1 parent c4abf89 commit cd2694b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/SendValueTransferForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</el-button>
<el-button
class="send-btn"
tabindex="5"
tabindex="6"
type="primary"
data-test="sign-send-btn"
@click="tryCreateVTT"
Expand Down
6 changes: 3 additions & 3 deletions src/store/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
} from '@/constants'
import { SET_TEMPLATES, UPDATE_TEMPLATE } from '@/store/mutation-types'
import warning from '@/resources/svg/warning.png'
import locale from 'element-ui/lib/locale'
import elementLocale from 'element-ui/lib/locale'

export default {
state: {
Expand Down Expand Up @@ -258,7 +258,7 @@ export default {
console.warn('[mutation setUnit]: invalid language')
}
// Set element locale
locale.use(LANGUAGES[i18n.locale].elementLocale)
elementLocale.use(LANGUAGES[i18n.locale].elementLocale)
},
changeDefaultUnit(state, unit) {
if (Object.values(WIT_UNIT).includes(unit)) {
Expand Down Expand Up @@ -1031,7 +1031,7 @@ export default {
})
}
// Set element locale
locale.use(LANGUAGES[payload.i18n.locale].elementLocale)
elementLocale.use(LANGUAGES[payload.i18n.locale].elementLocale)
},
getTheme: async function(context) {
const theme = context.state.localStorage.getThemeSettings()
Expand Down
3 changes: 1 addition & 2 deletions styleguide/scripts.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Vue from 'vue'
import Element from 'element-ui'
import '@/styles/element-variables.scss'
import locale from 'element-ui/lib/locale/lang/es'
import '@/fontAwesome.js'

Vue.use(Element, { locale })
Vue.use(Element)

0 comments on commit cd2694b

Please sign in to comment.