You cannot refer to objects yourself if this is not a method.
You can do:
const translations = {
en: {
statistics_title: 'Statistics'
},
ru: {
statistics_title: ''
},
get uk () {
return this.ru
}
}
Edit
If you want to translations.uk
not copy ru
or store your own data, this method will not work. It just sets translations.uk
as a link totranslations.ru
source
share