quintodrome/ui/src/i18n/index.js
2020-04-15 22:11:23 -04:00

13 lines
381 B
JavaScript

import en from './en'
import pt from './pt'
// When adding a new translation, import it above and add it to the list bellow
const allLanguages = { en, pt }
// "Hack" to make "albumSongs" resource use the same translations as "song"
Object.keys(allLanguages).forEach(
(k) => (allLanguages[k].resources.albumSong = allLanguages[k].resources.song)
)
export default allLanguages