-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add i18next-shopify framework #3
Add i18next-shopify framework #3
Conversation
836027b
to
ef19b97
Compare
dd21ea2
to
134008a
Compare
@@ -0,0 +1,11 @@ | |||
{ | |||
"title": "hello", | |||
"description": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a pluralization key to one of these example files? That's where i18next-shopify
diverges most from react-i18next
, and it will be good to have for demoing and testing feature improvements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! See "count.one"
, "count.other"
below, and there's usage in App.jsx
8dd5c42
to
7ee58be
Compare
134008a
to
92cfeaa
Compare
<div>{t("translation.description.part2")}</div> | ||
{/* plain <Trans>, #423 */} | ||
<Trans i18nKey="translation.description.part2">Fallback text</Trans> | ||
<p>{t("translation.count", { count: 1 })}</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Until the pluralization PR is merged, this will still render as "{...}"
This commit adds the i18next-shopify framework to the list of supported frameworks. It is an extension of the React i18next framework, with some configuration changes. Also add i18next-shopify example app, including a pluralization example.
2bd2073
to
e933f63
Compare
This commit adds the i18next-shopify framework to the list of supported frameworks.
It is an extension of the React i18next framework, with some configuration changes.
(Modified duplicate of Donn's PR: lokalise#931)