kazupon / vue-i18n

:globe_with_meridians: Internationalization plugin for Vue.js

Home Page:https://kazupon.github.io/vue-i18n/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read properties of undefined (reading '_t')"

fisherspoon opened this issue · comments

Reporting a bug?
Hi, I cannot find descriptions for a similar problem.

Module versions (please complete the following information):

  • vue: 2.6.14
  • vue-i18n: 8.26.7

I import vue-i18n and my translations from js file but I had error (Error in render: "TypeError: Cannot read properties of undefined (reading '_t')"). Throws an error when using $ t ('students.filterStudents'). I checked, translations are imported, a VueI18n object is created in which there is a localization and a translations object.

Снимок экрана 2021-12-09 в 11 15 13

Снимок экрана 2021-12-09 в 11 17 45

Снимок экрана 2021-12-09 в 11 21 14

Снимок экрана 2021-12-09 в 11 20 35

Снимок экрана 2021-12-09 в 11 22 03

Снимок экрана 2021-12-09 в 11 22 57

It just needed to be imported into the main file;)

Снимок экрана 2021-12-09 в 16 05 00