Skip to content

Commit

Permalink
test: missing test for pull request intlify#1718 (issue intlify#1717)
Browse files Browse the repository at this point in the history
  • Loading branch information
chojnicki committed Jan 30, 2024
1 parent 6a1fd07 commit 8ac71ce
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/vue-i18n-core/test/issues.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1273,3 +1273,19 @@ test('issue #1615', async () => {
`false (...but this should be false)`
)
})

test('issue #1717', async () => {
const en = {
'a.b.c': 'Hello, Vue I18n'
}
const i18n = createI18n({
locale: 'en',
messages: {
en: {}
}
})
i18n.global.mergeLocaleMessage('en', en)
expect(i18n.global.getLocaleMessage('en')).toEqual({
'a.b.c': 'Hello, Vue I18n' // should not be transformed to nested object like in issue
})
})

0 comments on commit 8ac71ce

Please sign in to comment.