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

Value of key 'roles.role::student' is not a string!

snowdream opened this issue · comments

Reporting a bug?

'roles.role::student' can not be translated.

roles: {
    'role::admin': 'Admin',
    'role::root': 'Root',
    'role::faculty': 'Faculty',
    'role::teacher': 'Teacher',
    'role::student': 'Student',
    'role::register': 'Register',
    'role::dean': 'Dean',
    'role::finance': 'Finance',
    'role::chairman': 'Chairman',
    'role::staff': 'Staff',
    'role::editor': 'Editor'
  }
 {{ $t('roles.role::student') }} 

Expected behavior

 {{ $t('roles.role::student') }} 

Student

Reproduction

See intro text

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz    
    Memory: 267.66 MB / 11.45 GB
  Binaries:
    Node: 19.8.1 - C:\Program Files\nodejs\node.EXE
    npm: 9.5.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.43)
    Internet Explorer: 11.0.19041.1566

Screenshot

image

Additional context

No response

Validations