We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aca31eb commit c7e64c6Copy full SHA for c7e64c6
packages/@vue/cli-ui/src/i18n.js
@@ -23,13 +23,8 @@ function detectLanguage () {
23
24
async function autoInstallLocale (lang) {
25
try {
26
- let response = await fetch(`https://unpkg.com/vue-cli-locale-${lang}`)
+ let response = await fetch(`https://unpkg.com/vue-cli-locales/locales/${lang}.json`)
27
if (response.ok) {
28
- // Redirect
29
- const location = response.headers.get('location')
30
- if (location) {
31
- response = await fetch(`https://unpkg.com${location}`)
32
- }
33
const data = await response.json()
34
mergeLocale(lang, data)
35
return true
0 commit comments