Skip to content

Commit

Permalink
keep locale state on vuex
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Freitas committed Oct 23, 2019
1 parent 1c23ef0 commit ea7783b
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 14 deletions.
23 changes: 22 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 1,22 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>sharkguto</title><link href=/js/about.963ca871.js rel=prefetch><link href=/js/products.0ea4eae4.js rel=prefetch><link href=/css/app.ef83c4b2.css rel=preload as=style><link href=/css/chunk-vendors.528f884b.css rel=preload as=style><link href=/js/app.63f1553a.js rel=preload as=script><link href=/js/chunk-vendors.bba27c27.js rel=preload as=script><link href=/css/chunk-vendors.528f884b.css rel=stylesheet><link href=/css/app.ef83c4b2.css rel=stylesheet></head><body><noscript><strong>We're sorry but sharkguto doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.bba27c27.js></script><script src=/js/app.63f1553a.js></script></body></html>
<!DOCTYPE html>
<html lang=en>

<head>
<meta charset=utf-8>
<meta http-equiv=X-UA-Compatible content="IE=edge">
<meta name=viewport content="width=device-width,initial-scale=1">
<link rel=icon href=/favicon.ico> <title>sharkguto</title>
<link href=/js/about.963ca871.js rel=prefetch>
<link href=/js/products.0ea4eae4.js rel=prefetch>
<link href=/css/app.ef83c4b2.css rel=preload as=style>
<link href=/css/chunk-vendors.528f884b.css rel=preload as=style>
<link href=/js/app.9e456a41.js rel=preload as=script>
<link href=/js/chunk-vendors.bba27c27.js rel=preload as=script>
<link href=/css/chunk-vendors.528f884b.css rel=stylesheet>
<link href=/css/app.ef83c4b2.css rel=stylesheet>
</head>

<body><noscript><strong>We're sorry but sharkguto doesn't work properly without JavaScript enabled. Please enable it to
continue.</strong></noscript>
<div id=app></div>
<script src=/js/chunk-vendors.bba27c27.js> </script> <script src=/js/app.9e456a41.js> </script> </body> </html>
2 changes: 0 additions & 2 deletions js/app.63f1553a.js

This file was deleted.

1 change: 0 additions & 1 deletion js/app.63f1553a.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions js/app.9e456a41.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/app.9e456a41.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions sharkguto/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 32,7 @@

<script>
import store from './store';
import i18n from './translate';
export default {
Expand All @@ -46,6 47,7 @@ export default {
},
methods: {
changeLocale(locale) {
store.commit('setLanguage', locale);
i18n.locale = locale;
},
},
Expand Down
Loading

0 comments on commit ea7783b

Please sign in to comment.