Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not inclue js locale files #297

Open
4 tasks done
hzhoup opened this issue Sep 16, 2023 · 2 comments
Open
4 tasks done

can not inclue js locale files #297

hzhoup opened this issue Sep 16, 2023 · 2 comments
Labels

Comments

@hzhoup
Copy link

hzhoup commented Sep 16, 2023

Reporting a bug?

when the locales file is the .js file, the messges is empty. try to rename xxx.json it can work.

plugin setting:
image

files:
image

use:

import { createI18n } from 'vue-i18n'
import messages from '@intlify/unplugin-vue-i18n/messages'

export let i18n

function createI18nOptions() {
  // ...
  return {
    messages,
    locale: 'zh',
    sync: true,
    legacy: false,
    missingWarn: false,
    fallbackLocale: 'zh',
    silentTranslationWarn: true,
    silentFallbackWarn: true
  }
}

Expected behavior

can include js files

Reproduction

non

Issue Package

unplugin-vue-i18n

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
    Memory: 6.55 GB / 15.89 GB
  Binaries:
    Node: 16.20.0 - E:\nodejs\node.EXE
    Yarn: 1.22.19 - E:\nvm\npm\yarn.CMD
    npm: 9.6.5 - E:\nvm\npm\npm.CMD
    pnpm: 8.7.5 - E:\nodejs\pnpm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (116.0.1938.81)
    Internet Explorer: 11.0.19041.1566

Screenshot

No response

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the README
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion.
@hzhoup hzhoup added the Status: Review Needed Request for review comments label Sep 16, 2023
@hzhoup
Copy link
Author

hzhoup commented Sep 16, 2023

like #266

Copy link
Member

kazupon commented Sep 28, 2023

Thank you for your reporting!
We need your minimal reproduction with github repo or stackbliz.
Could you give us about it ,please?

@kazupon kazupon added Status: Need More Info Lacks enough info to make progress Package: unplugin-vue-i18n and removed Status: Review Needed Request for review comments labels Sep 28, 2023 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants