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

feat: Pass props to I18nProvider.defaultComponent in Trans.render style #1242

Merged

Conversation

ilyadoroshin
Copy link
Contributor

@ilyadoroshin ilyadoroshin commented May 13, 2022

The reason for that PR is to have more control inside defaultComponent.

I'm using your awesome library with nextjs and loading translations asyncronically on a client side, but for the first render I'd like to be able to display some kind of skeleton.

The possibilities with this change are huge: we can even make some kind of i18n-WYSIWYG.

@vercel
Copy link

vercel bot commented May 13, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
js-lingui ✅ Ready (Inspect) Visit Preview May 17, 2022 at 8:25AM (UTC)

@ilyadoroshin ilyadoroshin changed the title Pass props to I18nProvider.defaultComponent in Trans.render style feat: Pass props to I18nProvider.defaultComponent in Trans.render style May 13, 2022
@ilyadoroshin
Copy link
Contributor Author

@andrii-bodnar could you, please, check? and merge if it's ok?)

@andrii-bodnar
Copy link
Contributor

Hi @ilyadoroshin!

Unfortunately, I have no permission to review and merge PRs. Probably, someone else should look into this

@ilyadoroshin
Copy link
Contributor Author

@semoal hi, perhaps you could check'n'merge?
thanks!

@ilyadoroshin
Copy link
Contributor Author

@semoal please?

@semoal semoal merged commit fe4cac4 into lingui:main Jun 22, 2022
@semoal
Copy link
Contributor

semoal commented Jun 22, 2022

LGTM; thanks for the contribution! We will try to release a new version along the week

@ilyadoroshin ilyadoroshin deleted the feature/i18n-provider-component-props branch June 22, 2022 09:27
divyansh7924 pushed a commit to divyansh7924/js-lingui that referenced this pull request Oct 5, 2022
…le (lingui#1242)


Co-authored-by: Ilya Doroshin <idoroshin@aligntech.com>
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

Successfully merging this pull request may close these issues.

None yet

3 participants