Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

232
Views
Vue.js how to get current locale in i18n language package

i want to get my current locale , because i need to check if the current locale === 'en' then return true or false, how can i do this? Vue.js/i18n/vee-validate

main.js :

  import { createApp } from "vue";
  import { createPinia } from "pinia";
  import "./index.css";
  import App from "./App.vue";
  import router from "./router";
  import "@/config/vee-validate/rules";
  import "@/config/vee-validate/messages";

   const app = createApp(App);

   app.use(createPinia());
         app.use(router);

    app.mount("#app");
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

In option API use :

this.$i18n.locale

in composition API use the useI18n function to get the locale :

const {locale}=useI18n()

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!