i18next-parser icon indicating copy to clipboard operation
i18next-parser copied to clipboard

Support fallback keys in t function

Open markdon opened this issue 3 years ago • 3 comments

🚀 Feature Proposal

Support parsing of t function with fallback keys array.

Motivation

It adds support for a useful i18next feature.

Example

i18next supports specifying multiple keys as fallbacks in the t function.

t(['use.this.if.it.is.translated', 'otherwise.use.this']);

This doesn't result in two keys found by [email protected].

markdon avatar Sep 29 '21 02:09 markdon

@markdon If you are using 2.1.2, I would suggest you upgrade to a newer version and I will not maintain the 2.x branch. We are currently at 4.x and about to launch 5.x

karellm avatar Sep 30 '21 03:09 karellm

@karellm I'm definitely looking forward to updating major versions of dependencies for the project I'm working on.

Are you saying 4+ supports this feature? 😁

markdon avatar Sep 30 '21 04:09 markdon

I'm using version 6.5.0 and it doesn't seem to support this still. Would be a useful one for us

TomABrook avatar Aug 17 '22 12:08 TomABrook