Updated i18n.json to use new resource paths

This commit is contained in:
Nicholas 2023-11-30 00:36:30 -07:00
parent 1a89a0d485
commit 3c29fe5656

View file

@ -1,5 +1,5 @@
import Vue from "vue" import Vue from "vue"
import enUsStrings from '../strings/en-us.json' import enUsStrings from '../strngs/en-us/strings.json'
import { supplant } from './utils' import { supplant } from './utils'
const defaultCode = 'en-us' const defaultCode = 'en-us'
@ -51,7 +51,7 @@ var translations = {
function loadTranslationStrings(code) { function loadTranslationStrings(code) {
return new Promise((resolve) => { return new Promise((resolve) => {
import(`../strings/${code}`).then((fileContents) => { import(`../strings/${code}/strings`).then((fileContents) => {
resolve(fileContents.default) resolve(fileContents.default)
}).catch((error) => { }).catch((error) => {
console.error('Failed to load i18n strings', code, error) console.error('Failed to load i18n strings', code, error)