Move translations to server

This commit is contained in:
Deluan
2020-05-01 18:29:50 -04:00
committed by Deluan Quintão
parent 1a9663d432
commit 41cf99541d
19 changed files with 954 additions and 801 deletions
-22
View File
@@ -1,22 +0,0 @@
import deepmerge from 'deepmerge'
import en from './en'
import zh from './zh'
import fr from './fr'
import it from './it'
import nl from './nl'
import pt from './pt'
const addLanguages = (lang) => {
Object.keys(lang).forEach((l) => (languages[l] = deepmerge(en, lang[l])))
}
const languages = { en }
// Add new languages to the object below (please keep alphabetic sort)
addLanguages({ fr, it, nl, pt, zh })
// "Hack" to make "albumSongs" resource use the same translations as "song"
Object.keys(languages).forEach(
(k) => (languages[k].resources.albumSong = languages[k].resources.song)
)
export default languages