Skip to content

Add i18next-shopify framework#3

Merged
trishrempel merged 1 commit into
release/i18next-shopifyfrom
kos/add_i18next_shopify_framework
Jul 10, 2023
Merged

Add i18next-shopify framework#3
trishrempel merged 1 commit into
release/i18next-shopifyfrom
kos/add_i18next_shopify_framework

Conversation

@mkevinosullivan

@mkevinosullivan mkevinosullivan commented Jun 20, 2023

Copy link
Copy Markdown

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)

Comment thread src/frameworks/i18next-shopify.ts Outdated
Comment thread src/frameworks/index.ts
@mkevinosullivan mkevinosullivan changed the base branch from main to kos/enable_extraction_on_reacti18next_framework June 21, 2023 16:02
@mkevinosullivan mkevinosullivan force-pushed the kos/add_i18next_shopify_framework branch from 836027b to ef19b97 Compare June 21, 2023 16:03
Comment thread src/frameworks/i18next-shopify.ts Outdated
@mkevinosullivan mkevinosullivan force-pushed the kos/add_i18next_shopify_framework branch from dd21ea2 to 134008a Compare June 21, 2023 20:20
Comment thread examples/by-frameworks/i18next-shopify/.vscode/settings.json Outdated
Comment thread examples/by-frameworks/i18next-shopify/.vscode/settings.json
@@ -0,0 +1,11 @@
{
"title": "hello",
"description": {

Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Author

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

Comment thread package.json
Comment thread examples/by-frameworks/i18next-shopify/src/i18n.js
@mkevinosullivan mkevinosullivan force-pushed the kos/enable_extraction_on_reacti18next_framework branch 2 times, most recently from 8dd5c42 to 7ee58be Compare June 22, 2023 15:30
@mkevinosullivan mkevinosullivan force-pushed the kos/add_i18next_shopify_framework branch from 134008a to 92cfeaa Compare June 22, 2023 15:37
<div>{t("translation.description.part2")}</div>
{/* plain <Trans>, #423 */}
<Trans i18nKey="translation.description.part2">Fallback text</Trans>
<p>{t("translation.count", { count: 1 })}</p>

Copy link
Copy Markdown
Author

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.
@mkevinosullivan mkevinosullivan force-pushed the kos/add_i18next_shopify_framework branch from 2bd2073 to e933f63 Compare June 22, 2023 18:46
@trishrempel trishrempel changed the base branch from kos/enable_extraction_on_reacti18next_framework to release/i18next-shopify July 10, 2023 18:11
@trishrempel trishrempel merged commit b4018f6 into release/i18next-shopify Jul 10, 2023
@trishrempel trishrempel added the #gsd:32590 App localization tools & guidance label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:32590 App localization tools & guidance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants