quintodrome/ui/src/i18n/index.js

14 lines
381 B
JavaScript
Raw Normal View History

2020-02-07 05:40:52 -09:00
import en from './en'
import pt from './pt'
2020-02-07 05:40:52 -09:00
// 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