mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-13 17:50:59 +00:00
chore(app): added quick language switching for development
This commit is contained in:
@@ -80,6 +80,15 @@ export default defineComponent({
|
|||||||
async mounted() {
|
async mounted() {
|
||||||
window.addEventListener('mousemove', (e: MouseEvent) => this.tooltipStore.handle(e));
|
window.addEventListener('mousemove', (e: MouseEvent) => this.tooltipStore.handle(e));
|
||||||
window.addEventListener('mousedown', () => this.tooltipStore.hide());
|
window.addEventListener('mousedown', () => this.tooltipStore.hide());
|
||||||
|
|
||||||
|
// Dev only - for locale testing
|
||||||
|
if (import.meta.env.DEV) {
|
||||||
|
window.addEventListener('keydown', (e) => {
|
||||||
|
if (e.key.toLowerCase() == 'l' && e.shiftKey) {
|
||||||
|
this.store.changeLocale(this.store.currentLocale == 'pl' ? 'en' : 'pl');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user