eslint-plugin-i18n-json icon indicating copy to clipboard operation
eslint-plugin-i18n-json copied to clipboard

i18n-json/valid-message-syntax: Add possibility to allow Arrays

Open Taucher2003 opened this issue 2 years ago • 0 comments

Currently it is hardcoded that Arrays can't be a valid translation. However, based on the setup, there are some legitimate usages of Arrays and this is blocking it for no reason.

https://github.com/godaddy/eslint-plugin-i18n-json/blob/13d5f18cbc123bd4d7c3cf98482623a3b85261bf/src/valid-message-syntax.js#L143-L150

The problem is, that we can't bypass this check with a custom validator which would allow Arrays for some specific keys

Taucher2003 avatar May 29 '22 15:05 Taucher2003