Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow configuration of multiple set of dynamic context #222

Open
ForgottenR opened this issue Oct 20, 2021 · 1 comment
Open

allow configuration of multiple set of dynamic context #222

ForgottenR opened this issue Oct 20, 2021 · 1 comment

Comments

@ForgottenR
Copy link

🚀 Feature Proposal

allow configuration of multiple set of dynamic context instead of only being able to configure a default context now.

Motivation

contextDefaultValues is good but not enough under many circumstances

Example

allow configuration like

contextValues={'gender':['male','female'],'color':['red','blue','yellow']}

for source files, maybe utilize some comment to specify which context set to use like

// i18-next-scanner-use-context-values color
 t('some key',{context:someData.color})
// i18-next-scanner-use-context-values gender
 t('another key',{context:someData.gender})
@ForgottenR
Copy link
Author

#198 actually I found a pull request that is very silimar to what I seek, is there any chance to re-open this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant