mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-15 13:51:35 +00:00
Updated i18n.json to use new resource paths
This commit is contained in:
parent
1a89a0d485
commit
3c29fe5656
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue