Apparently newest versions of vue-i18n (9.9.0+) don't work with arrayed translations.
If I have messages:
{
foo: 'Lorem Ipsum 1',
bar: ['Lorem Ipsum 2']
}
the message which is an Array won't work with $t and i18n.global.t function:
console.log(i18n.global.t('foo')) // returns 'Lorem Ipsum 1' - correct
console.log(i18n.global.t('bar')) // returns 'bar' - incorrect! should return array, like below:
console.log(i18n.global.messages.value[i18n.global.locale.value]['bar'] // returns Proxy(Array) {0: 'Lorem Ipsum 2'}
In an older version of I18n i18n.global.t('bar') would return the array rather than just the key ("bar").
Why it was changed? What alternatives can we use instead of i18n.global.t that apparently doesn't support arrays anymore?